From 265138c7588f7c1d9701492979b05bcbd65af31c Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sat, 8 Mar 2014 17:21:06 -0700 Subject: [PATCH] fixed bug related to #163 --- cmd/drone/drone.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/drone/drone.go b/cmd/drone/drone.go index ca20dd262f..91408f2bc0 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, }