Skip to content

Commit

Permalink
fix git builder
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed May 18, 2019
1 parent d13dd17 commit 623a626
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qmp/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ def _update_git(msg, pa, git_commit, qgis_repo):

repo = git.Repo(pa.output.qgis)
g = git.Git(pa.output.qgis)
o = repo.remotes.origin
o.fetch()
g.checkout(git_commit)
try:
# pull does not work when we have tag, only on branch (e.g. master)
o = repo.remotes.origin
o.pull()
except git.exc.GitCommandError:
msg.dev("Failed to pull, probably you are on tag and not branch...")
Expand Down

0 comments on commit 623a626

Please sign in to comment.