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.
1 parent 3280fdd commit 3c786e8Copy full SHA for 3c786e8
nbgitpuller/pull.py
@@ -303,11 +303,13 @@ def main():
303
304
parser = argparse.ArgumentParser(description='Synchronizes a github repository with a local repository.')
305
parser.add_argument('git_url', help='Url of the repo to sync')
306
+ parser.add_argument('branch_name', default='master', help='Branch of repo to sync', nargs='?')
307
parser.add_argument('repo_dir', default='.', help='Path to clone repo under', nargs='?')
308
args = parser.parse_args()
309
310
for line in GitPuller(
311
args.git_url,
- args.repo_dir
312
+ args.repo_dir,
313
+ branch=args.branch_name
314
).pull():
315
print(line)
0 commit comments