Переглянути джерело

[GinR] GGIN link for remotes in GIN archives

cgars 7 роки тому
батько
коміт
c19b71da4f
1 змінених файлів з 1 додано та 1 видалено
  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
 		}