Skip to content

Commit d11d9ce

Browse files
authored
Update releaseUpdateGithub.fish
1 parent f75e3af commit d11d9ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jenkins/releaseUpdateGithub.fish

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ set -xg GIT_SSH_COMMAND "ssh -i ~/.ssh/id_rsa"
2424

2525
function updateRepository
2626
set -l cid (git rev-parse HEAD)
27+
and git reset --hard
2728
and git fetch origin $GIT_BRANCH
28-
and git reset --hard origin $GIT_BRANCH
29+
and git checkout -f $GIT_BRANCH
2930
and git clean -fdx
3031
and git reset --hard $cid
3132
and echo "FORCING UPDATE $GIT_BRANCH @ " (pwd)

0 commit comments

Comments
 (0)