mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Removed remaining git -C
This commit is contained in:
parent
3365ef7aaa
commit
5e28e6b9ac
1 changed files with 8 additions and 3 deletions
|
@ -52,13 +52,18 @@ make_repo() {
|
||||||
|
|
||||||
update_repo() {
|
update_repo() {
|
||||||
local directory="${1}"
|
local directory="${1}"
|
||||||
|
local curdir
|
||||||
|
|
||||||
|
curdir="${PWD}"
|
||||||
|
cd "${directory}" &> /dev/null || return 1
|
||||||
# Pull the latest commits
|
# Pull the latest commits
|
||||||
# Stash all files not tracked for later retrieval
|
# Stash all files not tracked for later retrieval
|
||||||
git -C "${directory}" stash --all --quiet
|
git stash --all --quiet
|
||||||
# Force a clean working directory for cloning
|
# Force a clean working directory for cloning
|
||||||
git -C "${directory}" clean --force -d
|
git clean --force -d
|
||||||
# Fetch latest changes and apply
|
# Fetch latest changes and apply
|
||||||
git -C "${directory}" pull --quiet
|
git pull --quiet
|
||||||
|
cd "${curdir}" &> /dev/null || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
getGitFiles() {
|
getGitFiles() {
|
||||||
|
|
Loading…
Reference in a new issue