Skip to content

Commit

Permalink
Use git clone bare instead of mirror
Browse files Browse the repository at this point in the history
mirror with refs explicit isn't supported in newer git version.  bare is want is desired, that is don't get upstream remotes.

 patch by Mick Semb Wever; reviewed by Brandon Williams
  • Loading branch information
michaelsembwever committed Oct 1, 2024
1 parent 8d5808c commit cc8cb98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ccmlib/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ def clone_development(git_repo, version, verbose=False, alias=False):
if not os.path.exists(local_git_cache):
common.info("Cloning Cassandra...")
process = subprocess.Popen(
['git', 'clone', '--mirror',
'-c remote.origin.fetch=+refs/heads/*:refs/heads/*',
'-c remote.origin.fetch=+refs/tags/*:refs/tags/*',
['git', 'clone', '--bare',
git_repo, local_git_cache],
cwd=__get_dir(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, _, _ = log_info(process, logger)
Expand Down

0 comments on commit cc8cb98

Please sign in to comment.