Skip to contentSkip to conversation

git-submodule: Fix a typo

PATCH In review CJ van den Berg 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-submodule: Fix a typo

This typo breaks the output of git submodule status.

---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-submodule.sh +1 -1
index 0ba0161..277fadc 100755
@@ -234,7 +234,7 @@ modules_list()
 			continue;
 		fi
 		revname=$(unset GIT_DIR && cd "$path" && git describe --tags $sha1)
-		set_name_rev "$path" $"sha1"
+		set_name_rev "$path" "$sha1"
 		if git diff-files --quiet -- "$path"
 		then
 			say " $sha1 $path$revname"
Signature · 1 line
1.5.2.GIT
#1 lore raw
Quoted 11 lines · CJ van den Berg

This typo breaks the output of git submodule status.

---
 git-submodule.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-submodule.sh +0 -0
index 0ba0161..277fadc 100755

git-submodule.sh modules_list() · line 240

Quoted 8 lines
git-submodule.sh +1 -1
@@ -234,7 +234,7 @@ modules_list()
 			continue;
 		fi
 		revname=$(unset GIT_DIR && cd "$path" && git describe --tags $sha1)
-		set_name_rev "$path" $"sha1"
+		set_name_rev "$path" "$sha1"
 		if git diff-files --quiet -- "$path"
 		then
 			say " $sha1 $path$revname"

Thanks. There is another, probably from a cut-n-paste.