We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba19aa7 commit 77d96c3Copy full SHA for 77d96c3
lib/git-subrepo
@@ -664,11 +664,13 @@ subrepo:push() {
664
git:delete-branch "$branch_name"
665
fi
666
667
- o "Put updates into '$subdir/.gitrepo' file."
668
- upstream_head_commit="$new_upstream_head_commit"
669
- subrepo_commit_ref="$upstream_head_commit"
670
- update-gitrepo-file
671
- RUN git commit -m "$(get-commit-message)"
+ if $update_wanted; then
+ o "Put updates into '$subdir/.gitrepo' file."
+ upstream_head_commit="$new_upstream_head_commit"
+ subrepo_commit_ref="$upstream_head_commit"
+ update-gitrepo-file
672
+ RUN git commit -m "$(get-commit-message)"
673
+ fi
674
}
675
676
# Fetch the subrepo's remote branch content:
0 commit comments