diff --git a/git-submodule.sh b/git-submodule.sh index 56ec3536e0..7674346c8d 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -327,7 +327,7 @@ set_name_rev () { cd "$1" && { git describe "$2" 2>/dev/null || git describe --tags "$2" 2>/dev/null || - git describe --contains --tags "$2" + git describe --contains --tags --always "$2" } ) ) test -z "$revname" || revname=" ($revname)"