aboutsummaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-04-14 23:15:09 -0700
committerJunio C Hamano <gitster@pobox.com>2008-04-14 23:15:09 -0700
commit189d6b8bfae62ab0c0bc62877ba97d6d88ae1595 (patch)
treebe8cbe8ec2a5db5306fa93d62ff2d05d642efcc8 /git-submodule.sh
parent8e4c6aa1ac6e63d2fcee1825e32afbf4cb97206f (diff)
parent2b6f0b0a78a713be51149f27c2c1172fe4afc9cd (diff)
downloadgit-189d6b8bfae62ab0c0bc62877ba97d6d88ae1595.tar.xz
Merge branch 'maint'
* maint: git clean: Add test to verify directories aren't removed with a prefix git clean: Don't automatically remove directories when run within subdirectory git-submodule - possibly use branch name to describe a module
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 7674346c8d..a745e42bf7 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -327,7 +327,8 @@ set_name_rev () {
cd "$1" && {
git describe "$2" 2>/dev/null ||
git describe --tags "$2" 2>/dev/null ||
- git describe --contains --tags --always "$2"
+ git describe --contains "$2" 2>/dev/null ||
+ git describe --all --always "$2"
}
) )
test -z "$revname" || revname=" ($revname)"