Skip to content
Snippets Groups Projects
Commit 17675937 authored by Will Thompson's avatar Will Thompson
Browse files

Prune while fetching

This job has been failing for the last week:

    ----------------------eos-openqa-tests----------------------
    Using /opt/backups/eos-openqa-tests.git
    - master @ 0c013e2 ..Could not execute git fetch
    error: cannot lock ref 'refs/heads/staging': 'refs/heads/staging/T25144-fix-fbe_language_switch-on-ISOs' exists; cannot create 'refs/heads/staging'
    From github.com:endlessm/eos-openqa-tests
     ! [new branch]      staging    -> staging  (unable to update local ref)
    Terminating early

This is because we previously had branches of the form 'staging/*' in
this repo, and we now have only a 'staging' branch (or none). Git
doesn't support both at once, but nothing pruned old staging branches.
Prune 'em.

https://phabricator.endlessm.com/T27103
parent 46f1dcfc
Branches
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ GITHUB_API_HOST = 'https://api.github.com'
GIT_CLONE_CMD = 'git clone %s %s %s'
GIT_CLONE_API_URL = 'https://%s@github.com/%s'
GIT_SHA_CMD = 'git rev-parse --short %s'
GIT_FETCH_CMD = 'git fetch'
GIT_FETCH_CMD = 'git fetch --prune'
GIT_CHECK_REMOTE_CMD = 'git ls-remote'
USER_DETAILS_PATH = '/users/%s'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment