aports/testing/shards/use-git-bare-instead-of-mirror.patch
Jakub Jirutka 8a898aa77c testing/shards: new aport
https://github.com/crystal-lang/shards
Dependency manager for the Crystal language
2018-03-28 01:28:18 +02:00

24 lines
906 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
---
src/resolvers/git.cr | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/resolvers/git.cr b/src/resolvers/git.cr
index bbc1184..b61adb6 100644
--- a/src/resolvers/git.cr
+++ b/src/resolvers/git.cr
@@ -177,7 +177,7 @@ module Shards
end
private def clone_repository
- 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}")