diff options
author | Michael Muré <batolettre@gmail.com> | 2020-07-01 19:39:02 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-07-01 19:39:02 +0200 |
commit | 3cf31fc4049fefc82db0a3d2018b5d98ab77c5d7 (patch) | |
tree | c77a29e1f35fefa5040454976c6edcf86e7678bc /api/http/git_file_handler.go | |
parent | 33d510ac3999b3d8fa7a4652dc44a21c713f97de (diff) | |
download | git-bug-3cf31fc4049fefc82db0a3d2018b5d98ab77c5d7.tar.gz |
repository: merge git.Hash in for one less /util package
Diffstat (limited to 'api/http/git_file_handler.go')
-rw-r--r-- | api/http/git_file_handler.go | 4 |
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 |