~tcarrio/git-mirror

86f55b13afc4a08d30aa1f27570f00aeef7cbd80 — Tom Carrio 3 years ago c7aa4ea
Use more standard show-current to get git branch
1 files changed, 1 insertions(+), 1 deletions(-)

M git-mirror.sh
M git-mirror.sh => git-mirror.sh +1 -1
@@ 34,7 34,7 @@ pushd "${GIT_LOCAL_REPO}"

set -x
git remote add ${GIT_TARGET_REMOTE} ${GIT_TARGET_REPO}
git branch | grep -E '^\* ' | sed 's/* //' | xargs git push --force ${GIT_TARGET_REMOTE}
git branch --show-current | xargs git push --force ${GIT_TARGET_REMOTE}

set +x
if [ $? -eq 0 ]