Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Broke down sourcing of git_sh_setup to avoid annoying error message i…

…n emacs
  • Loading branch information...
commit 683798a505dd7ede6afe9d0ba504cb125fc55318 1 parent d6bc488
Mathieu Lemoine authored bartman committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 git-wip
View
8 git-wip
@@ -36,7 +36,13 @@ Options for log:
SUBDIRECTORY_OK=Yes
OPTIONS_SPEC=
-. git-sh-setup || . $(git --exec-path)/git-sh-setup || ( echo "git wip needs git to run." ; exit 1 )
+
+if [ -r git-sh-setup ] ; then
+ . git-sh-setup
+else
+ . $(git --exec-path)/git-sh-setup || ( echo "git wip needs git to run." ; exit 1 )
+fi
+
require_work_tree
TMP="$GIT_DIR/.git-wip.$$"
Please sign in to comment.
Something went wrong with that request. Please try again.