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 5d6aba9 commit 94ac9ddCopy full SHA for 94ac9dd
lib/git-subrepo
@@ -665,11 +665,13 @@ subrepo:push() {
665
git:delete-branch "$branch_name"
666
fi
667
668
- o "Put updates into '$subdir/.gitrepo' file."
669
- upstream_head_commit="$new_upstream_head_commit"
670
- subrepo_commit_ref="$upstream_head_commit"
671
- update-gitrepo-file
672
- 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
673
+ RUN git commit -m "$(get-commit-message)"
674
+ fi
675
}
676
677
# Fetch the subrepo's remote branch content:
0 commit comments