Skip to content

Commit

Permalink
Make git push-current -f use a lease
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Sep 8, 2015
1 parent f1dc2bd commit c1dd62a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-push-current
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ usage () {
echo "Pushes the current branch to the given remote. Assumes 'origin' by default." >&2
echo >&2
echo "Options:" >&2
echo "-f Force push (use with care!)" >&2
echo "-f Force push (will use a lease)" >&2
echo "-h Show this help" >&2
}

Expand All @@ -25,7 +25,7 @@ remote=${1-origin}

opts=""
if [ $force -eq 1 ]; then
opts="-f"
opts="--force-with-lease"
fi

git push $opts -u "$remote" "$curr"

0 comments on commit c1dd62a

Please sign in to comment.