Explorar el Código

[GinR] GGIN link for remotes in GIN archives

cgars hace 7 años
padre
commit
c19b71da4f
Se han modificado 1 ficheros con 1 adiciones y 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
 		}