mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Clean upstream before merging to ensure clean state
This commit is contained in:
parent
fba6eef5bd
commit
1ba5ee72ff
@ -9,7 +9,7 @@ gitcmd="git -c commit.gpgsign=false"
|
|||||||
|
|
||||||
function update {
|
function update {
|
||||||
cd "$workdir/$1"
|
cd "$workdir/$1"
|
||||||
$gitcmd fetch && $gitcmd reset --hard origin/master
|
$gitcmd fetch && $gitcmd clean -fd && $gitcmd reset --hard origin/master
|
||||||
cd ../
|
cd ../
|
||||||
$gitcmd add $1
|
$gitcmd add $1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user