Skip to content

Commit 77139c7

Browse files
authored
Merge pull request #59 from physcrowley/main
Filter directory contents before applying pull to repos
2 parents aff764e + 4e5483f commit 77139c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/gh-classroom/pull/student-repos/student-repos.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ func NewCmdStudentReposPull(f *cmdutil.Factory) *cobra.Command {
7777
}
7878

7979
for _, r := range entries {
80+
if !r.IsDir() {
81+
continue
82+
}
8083
clonePath := filepath.Join(fullPath, r.Name())
8184
fmt.Printf("Pulling repo: %v\n", clonePath)
8285
err = os.Chdir(clonePath)

0 commit comments

Comments
 (0)