Explorar o código

[GinR] GGIN link for remotes in GIN archives

cgars %!s(int64=7) %!d(string=hai) anos
pai
achega
c19b71da4f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      routes/repo/repo.go

+ 1 - 1
routes/repo/repo.go

@@ -331,7 +331,7 @@ func Download(c *context.Context) {
 
 	archivePath = path.Join(archivePath, tool.ShortSHA1(commit.ID.String())+ext)
 	if !com.IsFile(archivePath) {
-		if err := commit.CreateArchive(archivePath, archiveType); err != nil {
+		if err := commit.CreateArchive(archivePath, archiveType, c.Repo.Repository.CloneLink().SSH); err != nil {
 			c.Handle(500, "Download -> CreateArchive "+archivePath, err)
 			return
 		}