mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:24:12 +00:00
fix for missing uid inside docker container
This commit is contained in:
parent
abfb37726f
commit
3b13366b1c
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user