~tcarrio/git-mirror

b98b242d1aed0305d7e77a4b6ec1222a6fe62b11 — Tom Carrio 3 years ago 12651b6
Fixed to not use mirror flag but remote/branch spec
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 --mirror ${GIT_TARGET_REMOTE}
git branch | grep -E '^\* ' | sed 's/* //' | xargs git push --force ${GIT_TARGET_REMOTE}

set +x
if [ $? -eq 0 ]