fix for missing uid inside docker container

This commit is contained in:
Miao Wang 2017-04-06 02:21:15 +08:00
parent abfb37726f
commit 3b13366b1c

View File

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
set -e set -e
git_option="git -c user.email=non-existence@tuna.tsinghua.edu.cn -c user.name=Noname"
function repo_init() { function repo_init() {
UPSTREAM="$1" UPSTREAM="$1"
WORKING_DIR="$2" WORKING_DIR="$2"
@ -22,10 +24,10 @@ function checkout_font_branch() {
branch="$3" branch="$3"
echo "Checkout branch $branch to $work_tree" echo "Checkout branch $branch to $work_tree"
if [[ ! -d "$2" ]]; then if [[ ! -d "$2" ]]; then
git clone "$repo_dir" --branch "$branch" --single-branch "$work_tree" $git_option clone "$repo_dir" --branch "$branch" --single-branch "$work_tree"
else else
cd "$work_tree" cd "$work_tree"
git pull $git_option pull
fi fi
} }