Skip to content

Commit

Permalink
Add more infomation to warning when failing to fetch from remote repo…
Browse files Browse the repository at this point in the history
…sitory
  • Loading branch information
jo-basevi committed Sep 17, 2024
1 parent dca2cc6 commit d7f9e50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion payu/git_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ def remote_branches_dict(self) -> Dict[str, git.Head]:
except git.exc.GitCommandError:
warnings.warn(
f"Failed to fetch from remote repository: {remote.name} " +
f"(url: {remote.url})",
f"(url: {remote.url}). Payu is not able to determine " +
"remote branch names, which are used in payu checkout " +
"to check if a branch already exists, or when creating " +
"a new branch from a remote branch.",
PayuGitWarning
)
continue
Expand Down

0 comments on commit d7f9e50

Please # to comment.