Bug for already present Git repos fixed
This commit is contained in:
parent
22f5865c75
commit
452193468f
|
@ -59,22 +59,22 @@ 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,
|
url,
|
||||||
url,
|
root_url,
|
||||||
root_url,
|
type,
|
||||||
type,
|
path_encoding,
|
||||||
path_encoding,
|
extra_info)
|
||||||
extra_info)
|
VALUES('$chili_project_id',
|
||||||
VALUES('$chili_project_id',
|
'$gitorious_path',
|
||||||
'$gitorious_path',
|
'$gitorious_path',
|
||||||
'$gitorious_path',
|
'Git',
|
||||||
'Git',
|
'',
|
||||||
'',
|
'')"
|
||||||
'')"
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
let n++
|
let n++
|
||||||
|
|
Loading…
Reference in New Issue