Skip to content

Commit 7df827f

Browse files
committed
Move git-sizer.go and git_sizer_test.go to the top level
1 parent d4b04a8 commit 7df827f

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ GOFLAGS := \
1010
--tags "static" \
1111
-ldflags "-X main.BuildVersion=$(shell git rev-parse HEAD) -X main.BuildDescribe=$(shell git describe --tags --always --dirty)"
1212
GO_PKGS := $(PACKAGE) \
13-
$(PACKAGE)/git-sizer \
1413
$(PACKAGE)/isatty \
1514
$(PACKAGE)/meter \
1615
$(PACKAGE)/sizes
@@ -22,7 +21,7 @@ all: bin/git-sizer
2221
.PHONY: bin/git-sizer
2322
bin/git-sizer:
2423
mkdir -p bin
25-
$(GO) build $(GOFLAGS) -o $@ $(PACKAGE)/git-sizer
24+
$(GO) build $(GOFLAGS) -o $@ $(PACKAGE)
2625

2726
.PHONY: test
2827
test: bin/git-sizer gotest
File renamed without changes.

git-sizer/git_sizer_test.go renamed to git_sizer_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import (
77

88
// Smoke test that the program runs.
99
func TestExec(t *testing.T) {
10-
command := exec.Command("bin/git-sizer", ".")
11-
command.Dir = ".."
10+
command := exec.Command("bin/git-sizer")
1211
output, err := command.CombinedOutput()
1312
if err != nil {
1413
t.Errorf("command failed (%s); output: %#v", err, string(output))

0 commit comments

Comments
 (0)