Skip to content

Commit

Permalink
Merge topic 'update-gitsetup'
Browse files Browse the repository at this point in the history
631da93 Merge branch 'upstream-GitSetup' into update-gitsetup
8a0f726 GitSetup 2017-10-26 (1639317d)

Acked-by: Kitware Robot <[email protected]>
Acked-by: Ben Boeckel <[email protected]>
Merge-request: !3623
  • Loading branch information
bradking authored and kwrobot committed Nov 27, 2017
2 parents 20d3125 + 631da93 commit c89be39
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Utilities/GitSetup/git-gitlab-push
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ OPTIONS
Show what would be pushed without actually updating the destination
-f,--force
Force-push the topic HEAD to rewrite the destination branch
Force-push the topic HEAD to rewrite the destination branch (use twice
to ignore stale remote tracking branches)
--keep-data
Do not erase local data refs after pushing
Expand Down Expand Up @@ -117,7 +118,14 @@ set_upstream=true
# Parse the command line options.
while test $# != 0; do
case "$1" in
-f|--force) force='+'; lease=true ;;
-f|--force)
if test -n "$force"; then
lease=false
else
lease=true
fi
force='+'
;;
--keep-data) keep_data=1 ;;
--no-topic) no_topic=1; set_upstream=false ;;
--no-data) no_data=1 ;;
Expand Down

0 comments on commit c89be39

Please sign in to comment.