Skip to content

Commit

Permalink
fix tiny problem (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 18, 2023
1 parent 8167bec commit 959330a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ func resetWorkingTree(rootGoitPath string, index *store.Index) error {
for _, entry := range index.Entries {
obj, err := object.GetObject(rootGoitPath, entry.Hash)
if err != nil {
fmt.Errorf("fail to get object: %w", err)
return fmt.Errorf("fail to get object: %w", err)
}
if err := obj.ReflectToWorkingTree(rootGoitPath, string(entry.Path)); err != nil {
fmt.Errorf("fail to reflect %s to working directory: %w", string(entry.Path), err)
return fmt.Errorf("fail to reflect %s to working directory: %w", string(entry.Path), err)
}
}

Expand Down

0 comments on commit 959330a

Please sign in to comment.