Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit b9308fa

Browse files
committed
repository: fix of typo in PlainCloneContext(). [Fixes #741]
Signed-off-by: Bartek Jaroszewski <[email protected]>
1 parent a9cd96a commit b9308fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func PlainCloneContext(ctx context.Context, path string, isBare bool, o *CloneOp
368368
}
369369
defer fh.Close()
370370

371-
names, err = fh.Readdirnames(1)
371+
names, err := fh.Readdirnames(1)
372372
if err != nil {
373373
if err == io.EOF {
374374
dirEmpty = true

0 commit comments

Comments
 (0)