Skip to content

Commit 72b2586

Browse files
committed
Documented how ls_remote does error handling
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
1 parent 8467104 commit 72b2586

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cfbs/git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def git_exists():
3333
def ls_remote(remote, branch):
3434
"""Returns the hash of the commit that the current HEAD of a given branch
3535
on a given remote is pointing to.
36+
Returns `None` in case of error (e.g. the branch does not exist).
3637
3738
:param remote: the remote to list
3839
:param branch: the branch on the remote

0 commit comments

Comments
 (0)