Skip to content

Commit

Permalink
Use filepath.Base when reporting repoPath
Browse files Browse the repository at this point in the history
  • Loading branch information
andornaut committed Apr 21, 2018
1 parent 15cb7b5 commit bc81046
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"fmt"
"path/filepath"

"github.com/andornaut/gog/link"
"github.com/andornaut/gog/repository"
Expand All @@ -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)
}
2 changes: 2 additions & 0 deletions link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bc81046

Please sign in to comment.