Skip to content

Commit

Permalink
plumbing: serverinfo, move to transport package
Browse files Browse the repository at this point in the history
It makes more sense to have this living in the transport package, as it
is related to the transport layer.
  • Loading branch information
aymanbagabas committed Dec 31, 2024
1 parent c9740f3 commit 15e2048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package serverinfo
package transport

import (
"fmt"

"github.com/go-git/go-billy/v5"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/internal/reference"
"github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object"
Expand All @@ -20,7 +19,7 @@ import (
func UpdateServerInfo(s storage.Storer, fs billy.Filesystem) error {
pos, ok := s.(storer.PackedObjectStorer)
if !ok {
return git.ErrPackedObjectsNotSupported
return ErrPackedObjectsNotSupported
}

infoRefs, err := fs.Create("info/refs")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package serverinfo
package transport

import (
"io"
Expand Down

0 comments on commit 15e2048

Please sign in to comment.