mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Support refreshing patches
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
52fd9c9ddb
commit
f296ec0346
2 changed files with 8 additions and 0 deletions
|
@ -58,6 +58,13 @@ applyPatchReal() {
|
|||
firstLine=$(head -n1 "$currentWorkingPatch");
|
||||
if [[ "$firstLine" = *"Mon Sep 17 00:00:00 2001"* ]] || [[ "$firstLine" = *"Thu Jan 1 00:00:00 1970"* ]]; then
|
||||
git am "$@";
|
||||
if [ "$?" -eq 0 ]; then
|
||||
if [ "$DOS_REFRESH_PATCHES" = true ]; then
|
||||
if [[ "$currentWorkingPatch" == $DOS_PATCHES* ]]; then
|
||||
git format-patch -1 HEAD --zero-commit --output="$currentWorkingPatch";
|
||||
fi;
|
||||
fi;
|
||||
fi;
|
||||
else
|
||||
git apply "$@";
|
||||
echo "Applying (as diff): $currentWorkingPatch";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue