gitmediaclient doesn't need to check .git/media dir
the smudge command takes care of that
This commit is contained in:
parent
5fbaa6c897
commit
1125c63674
@ -84,7 +84,6 @@ func Put(filehash, filename string) error {
|
||||
|
||||
func Get(filename string) (io.ReadCloser, error) {
|
||||
oid := filepath.Base(filename)
|
||||
if stat, err := os.Stat(filename); err != nil || stat == nil {
|
||||
req, creds, err := clientRequest("GET", oid)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -107,9 +106,6 @@ func Get(filename string) (io.ReadCloser, error) {
|
||||
}
|
||||
|
||||
return res.Body, nil
|
||||
}
|
||||
|
||||
return os.Open(filename)
|
||||
}
|
||||
|
||||
func validateMediaHeader(contentType string, reader io.Reader) (bool, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user