Skip to content

Commit 6d91a5e

Browse files
committed
add missing 'git fetch' in sync_with_develop to make sure 'develop' branch can be checked out
1 parent 96d0450 commit 6d91a5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

easybuild/tools/github.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,13 @@ def sync_with_develop(git_repo, branch_name, github_account, github_repo):
19591959
pull_out = git_repo.git.pull(remote.name, GITHUB_DEVELOP_BRANCH)
19601960
_log.debug("Output of 'git pull %s %s': %s", remote.name, GITHUB_DEVELOP_BRANCH, pull_out)
19611961

1962+
# fetch to make sure we can check out the 'develop' branch
1963+
fetch_out = git_repo.git.fetch(remote.name)
1964+
_log.debug("Output of 'git fetch %s': %s", remote.name, fetch_out)
1965+
1966+
_log.debug("Output of 'git branch -a': %s", git_repo.git.branch(a=True))
1967+
_log.debug("Output of 'git remote -v': %s", git_repo.git.remote(v=True))
1968+
19621969
# create 'develop' branch (with force if one already exists),
19631970
git_repo.create_head(GITHUB_DEVELOP_BRANCH, remote.refs.develop, force=True).checkout()
19641971

0 commit comments

Comments
 (0)