diff options
-rwxr-xr-x | bin/sbuild-deb-package | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package index 0154b39..bfc41bc 100755 --- a/bin/sbuild-deb-package +++ b/bin/sbuild-deb-package @@ -136,6 +136,7 @@ prepare_workspace() { if [ ! -d ${PROJECT}/.git ]; then git clone --no-hardlinks --no-local "${GIT_TRANSPORT}://${GIT_HOSTNAME}/${PROJECT_PATH}.git" cd "${PROJECT}" + git fetch origin "${CHECKOUT}" || true git checkout --force "${CHECKOUT}" || git checkout --force -b "${CHECKOUT}" GIT_OBJECT_ID="$(git rev-parse --verify HEAD)" |