Skip to contentSkip to conversation

submodule.sh: remove unused variable

PATCH In review Stefan Beller 2 participants 2 messages Aug 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 submodule.sh: remove unused variable

This could have been part of 48308681b0 (git submodule update: have a dedicated helper for cloning, 2016-02-29).

---
 git-submodule.sh | 1 -
 1 file changed, 1 deletion(-)
git-submodule.sh +0 -1
index e131760eec..9dcec7b356 100755
@@ -611,7 +611,6 @@ cmd_update()
 		die_if_unmatched "$mode" "$sha1"
 
 		name=$(git submodule--helper name "$sm_path") || exit
-		url=$(git config submodule."$name".url)
 		if ! test -z "$update"
 		then
 			update_module=$update
Signature · 1 line
2.14.0.rc0.3.g6c2e499285
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Stefan Beller

This could have been part of 48308681b0 (git submodule update: have a dedicated helper for cloning, 2016-02-29).

---
 git-submodule.sh | 1 -
 1 file changed, 1 deletion(-)

Thanks for cleaning up.

Quoted 15 lines
git-submodule.sh +0 -1
index e131760eec..9dcec7b356 100755
@@ -611,7 +611,6 @@ cmd_update()
 		die_if_unmatched "$mode" "$sha1"
 
 		name=$(git submodule--helper name "$sm_path") || exit
-		url=$(git config submodule."$name".url)
 		if ! test -z "$update"
 		then
 			update_module=$update
Signature · 1 line
2.14.0.rc0.3.g6c2e499285