4 CURBRANCH
=`currentbranchname`
6 if ( echo $CURBRANCH|
grep ".dirty_for_rebase" ); then
9 git commit
-a 2> /tmp
/.commitbranch_commit_stderr
11 if [[ $
(cat /tmp
/.commitbranch_commit_stderr
) = "" ]]; then
12 git push origin
$CURBRANCH
13 if [[ "$?" = "0" ]]; then
17 if [[ $UPDATE_EXIT != "0" ]]; then
18 echo "Need to resolve update conflicts before commiting to the central repository."
22 # Use the real current branch name not the current before the script started
23 if ( test $CURBRANCH != "master" ); then
27 if ( test $PUSH_OK = 0 ); then
28 git push
--tags origin
$CURBRANCH
33 echo "Cannot connect to remote repository."