Skip to content

Commit

Permalink
Merge pull request gopasspw#128 from dominikschulz/fix/init
Browse files Browse the repository at this point in the history
Restore git init order
  • Loading branch information
metalmatze authored Jun 14, 2017
2 parents 98ee1f4 + ed04335 commit 905178c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ func (s *Action) init(alias, path string, nogit bool, keys ...string) error {
keys = []string{nk}
}

if err := s.Store.Init(alias, path, keys...); err != nil {
return err
}

if !nogit {
if err := s.gitInit(path, ""); err != nil {
color.Yellow("Failed to init git: %s", err)
}
}

if err := s.Store.Init(alias, path, keys...); err != nil {
return err
}

if alias != "" && path != "" {
if err := s.Store.AddMount(alias, path); err != nil {
return err
Expand Down

0 comments on commit 905178c

Please sign in to comment.