Bug for already present Git repos fixed

This commit is contained in:
Kolan Sh 2012-04-18 16:34:53 +04:00
parent 22f5865c75
commit 452193468f
1 changed files with 16 additions and 16 deletions

View File

@ -59,8 +59,7 @@ for v in $CHILI_ID_GITORIOUS_REPO; do
WHERE url='$gitorious_path' WHERE url='$gitorious_path'
OR root_url='$gitorious_path'" \ OR root_url='$gitorious_path'" \
| grep -v tables_col|xargs|sed "s/ /\n/g"|tail -n+2` | grep -v tables_col|xargs|sed "s/ /\n/g"|tail -n+2`
[ "$ALREADY_EXIST" != "" ] && continue if [ "" == "$ALREADY_EXIST" ]; then
# insert to $CHILI_MYSQL_DBNAME.repositories # insert to $CHILI_MYSQL_DBNAME.repositories
echo "insert $chili_project_id: $gitorious_path" echo "insert $chili_project_id: $gitorious_path"
mysql -h$MYSQL_HOSTNAME -u $MYSQL_USER -e "INSERT INTO $CHILI_MYSQL_DBNAME.repositories(project_id, mysql -h$MYSQL_HOSTNAME -u $MYSQL_USER -e "INSERT INTO $CHILI_MYSQL_DBNAME.repositories(project_id,
@ -75,6 +74,7 @@ for v in $CHILI_ID_GITORIOUS_REPO; do
'Git', 'Git',
'', '',
'')" '')"
fi
;; ;;
esac esac
let n++ let n++