diff --git a/cmd/drone/drone.go b/cmd/drone/drone.go index ca20dd26..91408f2b 100644 --- a/cmd/drone/drone.go +++ b/cmd/drone/drone.go @@ -134,9 +134,9 @@ func run(path string) { } // get the repository root directory - dir := filepath.Base(filepath.Dir(path)) + dir := filepath.Dir(path) code := repo.Repo{ - Name: dir, + Name: filepath.Base(dir), Branch: "HEAD", // should we do this? Path: dir, }