diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-11-07 01:20:42 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-11-07 01:20:42 +0100 |
commit | 58d2cafa1e7bc7d5a223a49eb2826fbfd2fcabb6 (patch) | |
tree | 1572a4da1d72c2d5dc55d90650c6eefa77f1b96d | |
parent | ccce18563c6ab780b9b27f16fc8ec714fe7ad0ff (diff) | |
download | ndim-git-utils-58d2cafa1e7bc7d5a223a49eb2826fbfd2fcabb6.tar.gz ndim-git-utils-58d2cafa1e7bc7d5a223a49eb2826fbfd2fcabb6.tar.xz ndim-git-utils-58d2cafa1e7bc7d5a223a49eb2826fbfd2fcabb6.zip |
git-amb: use git-rev-parse --verify
-rwxr-xr-x | git-amb/git-amb.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-amb/git-amb.in b/git-amb/git-amb.in index 78d81d8..892dd60 100755 --- a/git-amb/git-amb.in +++ b/git-amb/git-amb.in @@ -22,6 +22,7 @@ # Known to work and tested with # - git 1.5.3.4 +# Should also work with git 1.2 and possibly older. unset CDPATH SED="${SED-sed}" @@ -110,7 +111,7 @@ amb_init() { if test "x$1" = "x"; then # determine currently checked out branch git_branch="$(git-symbolic-ref HEAD | $SED -n 's|^refs/heads/||p')" - elif git-rev-parse "$1" > /dev/null 2>&1; then + elif git-rev-parse --verify "$1" > /dev/null 2>&1; then # $1 is valid branch: use it git_branch="${1}" else |