aboutsummaryrefslogtreecommitdiffstats
path: root/api/http
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-07-01 19:39:02 +0200
committerMichael Muré <batolettre@gmail.com>2020-07-01 19:39:02 +0200
commit3cf31fc4049fefc82db0a3d2018b5d98ab77c5d7 (patch)
treec77a29e1f35fefa5040454976c6edcf86e7678bc /api/http
parent33d510ac3999b3d8fa7a4652dc44a21c713f97de (diff)
downloadgit-bug-3cf31fc4049fefc82db0a3d2018b5d98ab77c5d7.tar.gz
repository: merge git.Hash in for one less /util package
Diffstat (limited to 'api/http')
-rw-r--r--api/http/git_file_handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/http/git_file_handler.go b/api/http/git_file_handler.go
index 6bd6fa85..0bc0fd0c 100644
--- a/api/http/git_file_handler.go
+++ b/api/http/git_file_handler.go
@@ -8,7 +8,7 @@ import (
"github.com/gorilla/mux"
"github.com/MichaelMure/git-bug/cache"
- "github.com/MichaelMure/git-bug/util/git"
+ "github.com/MichaelMure/git-bug/repository"
)
// implement a http.Handler that will read and server git blob.
@@ -41,7 +41,7 @@ func (gfh *gitFileHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
return
}
- hash := git.Hash(mux.Vars(r)["hash"])
+ hash := repository.Hash(mux.Vars(r)["hash"])
if !hash.IsValid() {
http.Error(rw, "invalid git hash", http.StatusBadRequest)
return