exe/githelp in githelp-0.1.0 vs exe/githelp in githelp-0.1.1
- old
+ new
@@ -13,9 +13,14 @@
require "bundler/setup"
require "githelp"
include Githelp
+unless git_check
+ STDERR.puts "Use 'githelp' in a Git repository."
+ exit
+end
+
progpath = $0
if File.symlink?(progpath)
progpath = File.readlink(progpath)
end
progdir = "#{File.dirname(progpath)}"