1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Make changes according to comment in #1384

This commit is contained in:
DL6ER 2017-04-21 17:08:15 +02:00
parent 2e398c5da4
commit db1e5f10ea
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -54,8 +54,8 @@ fetch_checkout_pull_branch() {
# Set the reference for the requested branch, fetch, check it put and pull it
cd "${directory}"
git remote set-branches origin "${branch}" || return 1
git stash --all --quiet &> /dev/null || return 1
git clean --force -d || return 1
git stash --all --quiet &> /dev/null || true
git clean --force -d || true
git fetch --quiet || return 1
checkout_pull_branch "${directory}" "${branch}" || return 1
}