diff options
-rw-r--r-- | worktree.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/worktree.go b/worktree.go index ae1ab28..63eb25b 100644 --- a/worktree.go +++ b/worktree.go @@ -498,6 +498,7 @@ func (w *Worktree) readGitmodulesFile() (*config.Modules, error) { return nil, err } + defer f.Close() input, err := stdioutil.ReadAll(f) if err != nil { return nil, err |