awips2/tools/scripts/upush
Richard Peter b5fa843960 Issue #2726: Edex graceful shutdown.
Refactored to use inheritance and separate logic where possible.
             Addressed comments.

Change-Id: I9e62414cd83121575bdf99a3b47466a7585bedb6

Former-commit-id: 909571ebca [formerly e4be1f24e7] [formerly dbba727f3d] [formerly 17196b5dcd [formerly dbba727f3d [formerly 6e015b3f61c20635077d6e8271e9b763e5a32fe1]]]
Former-commit-id: 17196b5dcd
Former-commit-id: f202d7fc11f48792bac7d10cbb20d9ba9077aa8f [formerly 8b279966d1]
Former-commit-id: ff87317bd4
2014-04-14 13:10:11 -05:00

15 lines
232 B
Bash
Executable file

#!/bin/bash
# Get current branch name
branch=`git branch | grep "*"`
branch="${branch:2}"
# Set remote push repo to branch
git config remote.origin.push $branch:refs/for/$branch
git pull --rebase
# Push now
git push
git status