Skip to content

Commit

Permalink
Added git init after copy_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-fennell committed Dec 19, 2023
1 parent cdc9cb5 commit 74c0046
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sphinx_multiversion/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,11 @@ def copy_tree(gitroot, src, dst, reference, sourcepath="."):
fp.seek(0)
with tarfile.TarFile(fileobj=fp) as tarfp:
tarfp.extractall(dst)

# Initialize git repository for cloned branch
cmd = (
"git",
"init",
)
output = ""
subprocess.check_call(cmd, cwd=gitroot, stdout=output)

0 comments on commit 74c0046

Please sign in to comment.