Skip to content

Commit

Permalink
git-new-workdir: Fix shell warning about operator == used with test.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Simon Hausmann authored and Junio C Hamano committed Jun 27, 2007
1 parent 4fb8c80 commit b658d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/workdir/git-new-workdir
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b658d50

Please sign in to comment.