summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-08-03 13:44:03 -0700
committerJunio C Hamano <gitster@pobox.com>2016-08-03 16:11:35 -0700
commit92bbe7ccf1fedac825f2c6ab4c8de91dc5370fd2 (patch)
tree06baebfb8e87768d6d055e6e5a88182ab12a22c8 /git-submodule.sh
parentb5944f3476dbaee15649b0fa02b2b35aaa149dc3 (diff)
downloadgit-92bbe7ccf1fedac825f2c6ab4c8de91dc5370fd2.tar.gz
submodule--helper: add remote-branch helper
In a later patch we want to enhance the logic for the branch selection. Rewrite the current logic to be in C, so we can directly use C when we enhance the logic. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 41aff65fac..8c5e8982ab 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -614,7 +614,7 @@ cmd_update()
if test -n "$remote"
then
- branch=$(get_submodule_config "$name" branch master)
+ branch=$(git submodule--helper remote-branch "$sm_path")
if test -z "$nofetch"
then
# Fetch remote before determining tracking $sha1