Permalink
Browse files

Don't fail if git-sh-setup is in a non-standard location

git-test-sequence fails if it cannot include git-sh-setup. For
instance, this can happen if git is installed in some non-standard
location. This patch adopts the recommended way (according to the git
docs) to include git-sh-setup, which works as long as the git binary
can be found in $PATH.
  • Loading branch information...
1 parent bd5abda commit 81770726ec093fac3b6020e39da82590f444276b @brandenburg brandenburg committed Aug 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 git-test-once
  2. +1 −1 git-test-sequence
View
@@ -3,7 +3,7 @@
# Example:
# git test-once 'make clean && make compile && make test'
-. git-sh-setup
+. "$(git --exec-path)/git-sh-setup"
require_work_tree
get_hash_input() {
View
@@ -3,7 +3,7 @@
# Example:
# git test-sequence origin/master.. 'make clean && make test'
-. git-sh-setup
+. "$(git --exec-path)/git-sh-setup"
require_work_tree
t=

0 comments on commit 8177072

Please sign in to comment.