forgejo-aneksajo_auto_patch.../data/1/ref_aneksajo_u.diff
2025-01-23 01:26:39 +01:00

34 lines
791 B
Diff

--- 9.0.3 2024-12-12 08:06:13.000000000 +0100
+++ aneksajo 2024-12-16 08:23:15.000000000 +0100
@@ -9,6 +9,7 @@
"net"
"net/http"
"os"
+ "os/exec"
"path/filepath"
"strconv"
"strings"
@@ -247,6 +248,12 @@
createPIDFile(ctx.String("pid"))
}
+ if setting.Annex.Enabled {
+ if _, err := exec.LookPath("git-annex"); err != nil {
+ log.Fatal("You have enabled git-annex support but git-annex is not installed. Please make sure that Forgejo's PATH contains the git-annex executable.")
+ }
+ }
+
if !setting.InstallLock {
if err := serveInstall(ctx); err != nil {
return err
@@ -311,6 +318,10 @@
log.Info("LFS server enabled")
}
+ if setting.Annex.Enabled {
+ log.Info("git-annex enabled")
+ }
+
var err error
switch setting.Protocol {
case setting.HTTP: