Skip to content

Commit

Permalink
Merge pull request #256 from SamMousa/patch-1
Browse files Browse the repository at this point in the history
Fix sparse path handling
  • Loading branch information
jacebrowning committed Apr 8, 2021
2 parents 600a79b + c3f0732 commit 3259a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitman/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def clone(type, repo, path, *, cache=settings.CACHE, sparse_paths=None, rev=None
with open(
"%s/%s/.git/info/sparse-checkout" % (os.getcwd(), normpath), 'w'
) as fd:
fd.writelines(sparse_paths)
fd.write("\n".join(sparse_paths))
with open(
"%s/%s/.git/objects/info/alternates" % (os.getcwd(), normpath), 'w'
) as fd:
Expand Down

0 comments on commit 3259a2a

Please sign in to comment.