1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/testing/shards/use-git-bare-instead-of-mirror.patch
Jakub Jirutka ec1d62b2f0 testing/shards: fix patch
I should really go sleep, I don't even know how it could have happened.
2018-03-28 02:30:16 +02:00

18 lines
792 B
Diff

From 3a64a76b495708a7f3bf7969e85b26817e094cc8 Mon Sep 17 00:00:00 2001
From: Julien Portalier <julien@portalier.com>
Date: Tue, 12 Dec 2017 10:19:44 +0100
Subject: [PATCH] Fix: use git --bare instead of --mirror
Patch-Source: https://github.com/crystal-lang/shards/commit/3a64a76b495708a7f3bf7969e85b26817e094cc8
--- a/src/resolvers/git.cr
+++ b/src/resolvers/git.cr
@@ -178,7 +178,7 @@
private def clone_repository
Dir.mkdir_p(Shards.cache_path) unless Dir.exists?(Shards.cache_path)
- run "git clone --mirror --quiet -- #{FileUtils.escape git_url} #{dependency.name}",
+ run "git clone --bare --quiet -- #{FileUtils.escape git_url} #{dependency.name}",
path: File.dirname(local_path)
rescue Error
raise Error.new("Failed to clone #{git_url}")