1. Stefan Saasen
  2. git

Commits

Junio C Hamano  committed e917918 Merge

Merge branch 'da/fix-submodule-sync-superproject-config' into maint

* da/fix-submodule-sync-superproject-config:
submodule sync: Update "submodule.<name>.url"

  • Participants
  • Parent commits 061219f, 0b9dca4
  • Branches master

Comments (0)

Files changed (2)

File git-submodule.sh

View file
  • Ignore whitespace
 		if test -e "$path"/.git
 		then
 		(
+			say "Synchronizing submodule url for '$name'"
+			git config submodule."$name".url "$url"
 			clear_local_git_env
 			cd "$path"
 			remote=$(get_default_remote)
-			say "Synchronizing submodule url for '$name'"
 			git config remote."$remote".url "$url"
 		)
 		fi

File t/t7403-submodule-sync.sh

View file
  • Ignore whitespace
 	(cd super-clone/submodule &&
 	 git checkout master &&
 	 git pull
+	) &&
+	(cd super-clone &&
+	 test -d "$(git config submodule.submodule.url)"
 	)
 '