forked from obel1x/fedora-OEMDRV
Compare commits
3 Commits
3a7ebbec61
...
a3c95ab146
| Author | SHA1 | Date | |
|---|---|---|---|
| a3c95ab146 | |||
| 1ac952c094 | |||
| 53b87fbe76 |
@@ -51,8 +51,8 @@ if [[ ! -z "${REPO_URL}" ]]; then
|
||||
else
|
||||
# Doing upgrade, discarding all local changes frist (is more save than forced pull)
|
||||
echo "Checks have passed, we are now upgrading via git."
|
||||
#Fetch latest Updates and remove all history
|
||||
git fetch origin && git reset --hard origin/${REPO_BRANCH} && git rebase HEAD^
|
||||
#Fetch latest commit only (depth=1), reset working tree, purge old history and untracked files
|
||||
git fetch --depth=1 origin ${REPO_BRANCH} && git reset --hard FETCH_HEAD && git -C "${SYSCONFIGPATH}" clean -fd && git gc --prune=now --quiet
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Error: Failure while updating, will continue as is."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user