Migrate googlecode to git

This commit is contained in:
Victor Shcherb 2011-08-15 01:02:33 +02:00
parent 1993331eef
commit c590b7e48e
3 changed files with 21 additions and 26 deletions

View file

@ -24,6 +24,6 @@ touch $LOG_FILE
"${DIRECTORY}/copyto_dir.sh" 2>&1 >>$LOG_FILE "${DIRECTORY}/copyto_dir.sh" 2>&1 >>$LOG_FILE
# 4. Synchronize github with googlecode mercurial # 4. Synchronize github with googlecode mercurial
"${DIRECTORY}/sync_git_hg.sh" 2>&1 >>$LOG_FILE "${DIRECTORY}/sync_git_google.sh" 2>&1 >>$LOG_FILE

View file

@ -0,0 +1,20 @@
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
GIT_DIR="$DIRECTORY"/osmand-git
GIT_URL=git://github.com/osmandapp/Osmand.git
if [ ! -d "$GIT_DIR" ]; then
git clone ${GIT_URL} "${GIT_DIR}"
fi
cd "$GIT_DIR"
git pull --rebase origin
# First time add entries to .git/config (!) and add .netrc file
# [remote "google"]
# url = https://code.google.com/p/osmand/
# fetch = +refs/heads/*:refs/remotes/google/*
git push --all --tags --force google
echo "Synchronization is ok"

View file

@ -1,25 +0,0 @@
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
GIT_DIR="$DIRECTORY"/osmand-git
GIT_URL=git://github.com/osmandapp/Osmand.git
GIT_ORIGIN_NAME=origin
HG_DIR="$DIRECTORY"/osmand-hg
HG_URL=https://osmand.googlecode.com/hg
BUILD_DIR="$DIRECTORY"/builds
if [ ! -d "$HG_DIR" ]; then
hg clone ${GIT_URL} "${HG_DIR}"
fi
cd "${HG_DIR}"
# hg pull -r master "${GIT_URL}" # ambigious master
hg pull "${GIT_URL}"
hg update -c
# First time add entries to .hgrc (!)
# [paths]
# default = git://github.com/osmandapp/Osmand.git
# googlecode = https://username:password@osmand.googlecode.com/hg
hg push -f googlecode
echo "Synchronization is ok"