Browse Source

Update libgit to 0.27

master
Dashie der otter 6 months ago
parent
commit
3d2a65bb55
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
6 changed files with 7 additions and 14 deletions
  1. 3
    8
      .drone.yml
  2. 0
    2
      TODO.org
  3. 1
    1
      routers/gitxt/gitxt.go
  4. 1
    1
      routers/repo/archive.go
  5. 1
    1
      stuff/gite/gite.go
  6. 1
    1
      stuff/repository/repository.go

+ 3
- 8
.drone.yml View File

@@ -16,9 +16,7 @@ pipeline:
TAGS: sqlite
GOPATH: /srv/app
commands:
- echo 'http://dl-cdn.alpinelinux.org/alpine/v3.7/main' >> /etc/apk/repositories
- apk update
- apk -U add libmagic file-dev libgit2=0.25.1-r4 libgit2-dev=0.25.1-r4
- apk -U add libmagic file-dev libgit2 libgit2-dev
- make test
when:
event: [ push, tag, pull_request ]
@@ -30,9 +28,7 @@ pipeline:
TAGS: sqlite
GOPATH: /srv/app
commands:
- echo 'http://dl-cdn.alpinelinux.org/alpine/v3.7/main' >> /etc/apk/repositories
- apk update
- apk -U add libmagic file-dev libgit2=0.25.1-r4 libgit2-dev=0.25.1-r4
- apk -U add libmagic file-dev libgit2 libgit2-dev
- make clean
- make vet
- make lint
@@ -48,9 +44,8 @@ pipeline:
TAGS: sqlite
GOPATH: /srv/app
commands:
- echo 'http://dl-cdn.alpinelinux.org/alpine/v3.7/main' >> /etc/apk/repositories
- apk update
- apk -U add libmagic file-dev libgit2=0.25.1-r4 libgit2-dev=0.25.1-r4
- apk -U add libmagic file-dev libgit2 libgit2-dev
- make clean
- make build
- make release-lx64

+ 0
- 2
TODO.org View File

@@ -6,8 +6,6 @@
** xorm update, breaking changes
*** migrate to gorm ?

** TODO Upgrade git2go to v26 (.3)
*** Blocked by https://github.com/libgit2/git2go/issues/407
** TODO Add edit time on view gist
** TODO Add line-break option
** TODO Cleanup gogs imports of unused bits

+ 1
- 1
routers/gitxt/gitxt.go View File

@@ -14,7 +14,7 @@ import (
"fmt"
"github.com/Unknwon/paginater"
log "gopkg.in/clog.v1"
"gopkg.in/libgit2/git2go.v26"
"gopkg.in/libgit2/git2go.v27"
gotemplate "html/template"
"os"
"path/filepath"

+ 1
- 1
routers/repo/archive.go View File

@@ -8,7 +8,7 @@ import (
"dev.sigpipe.me/dashie/git.txt/stuff/gite"
"dev.sigpipe.me/dashie/git.txt/stuff/tool"
"github.com/Unknwon/com"
"gopkg.in/libgit2/git2go.v26"
"gopkg.in/libgit2/git2go.v27"
"os"
"path"
"strings"

+ 1
- 1
stuff/gite/gite.go View File

@@ -5,7 +5,7 @@ import (
"archive/zip"
"dev.sigpipe.me/dashie/git.txt/setting"
"github.com/rakyll/magicmime"
"gopkg.in/libgit2/git2go.v26"
"gopkg.in/libgit2/git2go.v27"
gotemplate "html/template"
"os"
"path/filepath"

+ 1
- 1
stuff/repository/repository.go View File

@@ -2,7 +2,7 @@ package repository

import (
"dev.sigpipe.me/dashie/git.txt/setting"
git "gopkg.in/libgit2/git2go.v26"
git "gopkg.in/libgit2/git2go.v27"
"path"
)


Loading…
Cancel
Save