Fix handling of dry-run option.
[git-scripts.git] / git-fpush
blob68b83e165ddcea67d147e24875a56126806d628b
1 #! /bin/sh
3 # Some servers (like Savannah) refuse to force-update branches. This script
4 # can be used to workaround that.
5 # The branch is first deleted and push back.
7 if [[ "$1" = "" ]]; then
8 echo git fpush branch_name;
9 exit 1;
12 git push origin :$1 && git push origin $1