We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ls_remote
1 parent 8467104 commit 72b2586Copy full SHA for 72b2586
cfbs/git.py
@@ -33,6 +33,7 @@ def git_exists():
33
def ls_remote(remote, branch):
34
"""Returns the hash of the commit that the current HEAD of a given branch
35
on a given remote is pointing to.
36
+ Returns `None` in case of error (e.g. the branch does not exist).
37
38
:param remote: the remote to list
39
:param branch: the branch on the remote
0 commit comments