refactor: vcs simplification pass
This commit is contained in:
parent
2c9ecd7caf
commit
52c108f7d3
3 changed files with 48 additions and 84 deletions
|
|
@ -45,11 +45,11 @@ func init() {
|
|||
}
|
||||
|
||||
func vcsInit(cmd *cobra.Command, args []string) error {
|
||||
repoDir, err := vcsRepoRoot()
|
||||
store := &Store{}
|
||||
repoDir, err := store.path()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
store := &Store{}
|
||||
|
||||
clean, err := cmd.Flags().GetBool("clean")
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue