From 97edd110e69b59df82d73a86c2bca5d5d210d1bc Mon Sep 17 00:00:00 2001 From: rubyist Date: Fri, 30 Jan 2015 18:44:40 -0500 Subject: [PATCH] GIT_MEDIA_PROGRESS => HAWSER_PROGRESS --- commands/smudge_test.go | 2 +- hawser/util.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/smudge_test.go b/commands/smudge_test.go index e76a25df..63ad548f 100644 --- a/commands/smudge_test.go +++ b/commands/smudge_test.go @@ -20,7 +20,7 @@ func TestSmudge(t *testing.T) { cmd := repo.Command("smudge", "somefile") cmd.Input = bytes.NewBufferString("version https://hawser.github.com/spec/v1\noid sha256:SOMEOID\nsize 9\n") cmd.Output = "whatever" - cmd.Env = append(cmd.Env, "GIT_MEDIA_PROGRESS="+progressFile) + cmd.Env = append(cmd.Env, "HAWSER_PROGRESS="+progressFile) cmd.Before(func() { path := filepath.Join(repo.Path, ".git", "hawser", "objects", "SO", "ME") diff --git a/hawser/util.go b/hawser/util.go index 15fe85a5..86252803 100644 --- a/hawser/util.go +++ b/hawser/util.go @@ -44,13 +44,13 @@ func CopyWithCallback(writer io.Writer, reader io.Reader, totalSize int64, cb Co } func CopyCallbackFile(event, filename string, index, totalFiles int) (CopyCallback, *os.File, error) { - logPath := os.Getenv("GIT_MEDIA_PROGRESS") + logPath := os.Getenv("HAWSER_PROGRESS") if len(logPath) == 0 || len(filename) == 0 || len(event) == 0 { return nil, nil, nil } if !filepath.IsAbs(logPath) { - return nil, nil, fmt.Errorf("GIT_MEDIA_PROGRESS must be an absolute path") + return nil, nil, fmt.Errorf("HAWSER_PROGRESS must be an absolute path") } cbDir := filepath.Dir(logPath)