diff options
author | Simon Hausmann <simon@lst.de> | 2007-06-25 13:04:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-26 18:18:47 -0700 |
commit | b658d50325c938d87d4891cb62e2eefb0b58a62c (patch) | |
tree | 5812f970211b50916c4de4bf7d829d9792596828 /contrib/workdir | |
parent | git.spec: RPM failed, looking for wrong files. (diff) | |
download | tgif-b658d50325c938d87d4891cb62e2eefb0b58a62c.tar.xz |
git-new-workdir: Fix shell warning about operator == used with test.
Use = instead of == with test to test for equality.
Signed-off-by: Simon Hausmann <simon@lst.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/workdir')
-rwxr-xr-x | contrib/workdir/git-new-workdir | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir index 709b2a3ac0..3ff6bd166a 100755 --- a/contrib/workdir/git-new-workdir +++ b/contrib/workdir/git-new-workdir @@ -24,7 +24,7 @@ git_dir=$(cd "$orig_git" 2>/dev/null && git rev-parse --git-dir 2>/dev/null) || die "\"$orig_git\" is not a git repository!" -if test "$git_dir" == ".git" +if test "$git_dir" = ".git" then git_dir="$orig_git/.git" fi |