From a97ba06f5b08f0d898b91eaa79501d664fb7d5d0 Mon Sep 17 00:00:00 2001 From: Baris Metin Date: Fri, 18 Jun 2010 16:06:32 +0200 Subject: [PATCH] rebase instead of pulling to get rid of merge master branch objects --- scripts/git-mirror.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/git-mirror.sh b/scripts/git-mirror.sh index 5f42d64..de846f0 100755 --- a/scripts/git-mirror.sh +++ b/scripts/git-mirror.sh @@ -15,7 +15,8 @@ function mirror () { echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx pulling from ${REPO_NAME}" pushd ${REPO} git fetch origin --tags - git pull origin master + git fetch origin + git rebase origin popd else echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx mirroring in ${REPO_NAME} for the first time" @@ -28,8 +29,9 @@ function mirror () { echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx pushing ${REPO_NAME} to local master" pushd ${REPO} git fetch local_master --tags - git pull local_master master - + git fetch local_master + git rebase local_master + git push local_master git push --tags local_master popd -- 2.47.0