mirror of
https://github.com/openSUSE/osc.git
synced 2025-11-09 23:53:16 +01:00
Set limit=0 to disable pagination in all relevant git-obs subcommands
This commit is contained in:
@@ -41,7 +41,10 @@ class Branch:
|
||||
:param owner: Owner of the repo.
|
||||
:param repo: Name of the repo.
|
||||
"""
|
||||
url = conn.makeurl("repos", owner, repo, "branches")
|
||||
q = {
|
||||
"limit": -1,
|
||||
}
|
||||
url = conn.makeurl("repos", owner, repo, "branches", query=q)
|
||||
# XXX: returns 'null' when there are no branches; an empty list would be a better API
|
||||
return conn.request("GET", url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user