Skip to content

Commit eca8f19

Browse files
committed
clone/fetch without tags
1 parent baae7bc commit eca8f19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git_template_repo/git_template_repo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def execute(args):
8383
os.chdir(clone_dir)
8484
make_call("git", "init")
8585
else:
86-
make_call("git", "clone", new_repo, clone_dir)
86+
make_call("git", "clone", "--no-tags", new_repo, clone_dir)
8787
os.chdir(clone_dir)
8888

8989
if int(make_call("git", "rev-list", "--all", "--count")):
@@ -93,10 +93,10 @@ def execute(args):
9393
make_call("git", "remote", "add", "template", template_repo)
9494

9595
if is_sha1(template_branch):
96-
make_call("git", "fetch", "template", template_branch)
96+
make_call("git", "fetch", "--no-tags", "template", template_branch)
9797
make_call("git", "checkout", "--orphan", new_root_branch, template_branch)
9898
else:
99-
make_call("git", "fetch", "template")
99+
make_call("git", "fetch", "--no-tags", "template")
100100
make_call("git", "checkout", "--orphan", new_root_branch, f"template/{template_branch}")
101101

102102
make_call("git", "add", "-A")

0 commit comments

Comments
 (0)