From bc8104611cf2ba799d15abfeb1b9586a1057ee26 Mon Sep 17 00:00:00 2001 From: andornaut Date: Sat, 21 Apr 2018 14:31:21 -0400 Subject: [PATCH] Use filepath.Base when reporting repoPath --- cmd/apply.go | 3 ++- link/link.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/apply.go b/cmd/apply.go index a1d4e98..a49050f 100644 --- a/cmd/apply.go +++ b/cmd/apply.go @@ -2,6 +2,7 @@ package cmd import ( "fmt" + "path/filepath" "github.com/andornaut/gog/link" "github.com/andornaut/gog/repository" @@ -13,6 +14,6 @@ func RunApply(repoName string) error { if err != nil { return err } - fmt.Printf("REPOSITORY: %s\n---\n", repoPath) + fmt.Printf("REPOSITORY: %s\n---\n", filepath.Base(repoPath)) return link.Dir(repoPath, repoPath) } diff --git a/link/link.go b/link/link.go index 3f3f885..01f5538 100644 --- a/link/link.go +++ b/link/link.go @@ -23,6 +23,8 @@ func Dir(repoPath, intPath string) error { return nil case path.Join(repoPath, ".gitignore"): return nil + case path.Join(repoPath, "README.md"): + return nil case path.Join(repoPath, ".git"): return filepath.SkipDir }