Clean upstream before merging to ensure clean state
This commit is contained in:
parent
eb3be0ea5c
commit
a32840b449
|
@ -9,7 +9,7 @@ gitcmd="git -c commit.gpgsign=false"
|
|||
|
||||
function update {
|
||||
cd "$workdir/$1"
|
||||
$gitcmd fetch && $gitcmd reset --hard origin/master
|
||||
$gitcmd fetch && $gitcmd clean -fd && $gitcmd reset --hard origin/master
|
||||
cd ../
|
||||
$gitcmd add $1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue