diff options
author | Stefan Beller <sbeller@google.com> | 2016-08-03 13:44:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-03 16:11:35 -0700 |
commit | 92bbe7ccf1fedac825f2c6ab4c8de91dc5370fd2 (patch) | |
tree | 06baebfb8e87768d6d055e6e5a88182ab12a22c8 /git-submodule.sh | |
parent | b5944f3476dbaee15649b0fa02b2b35aaa149dc3 (diff) | |
download | git-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-x | git-submodule.sh | 2 |
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 |