Browse Source

[GinR] GGIN link for remotes in GIN archives

cgars 7 năm trước cách đây
mục cha
commit
c19b71da4f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 		}