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