Skip to content

Commit

Permalink
Merge pull request #59 from physcrowley/main
Browse files Browse the repository at this point in the history
Filter directory contents before applying pull to repos
  • Loading branch information
zrdaley authored Nov 21, 2023
2 parents aff764e + 4e5483f commit 77139c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/gh-classroom/pull/student-repos/student-repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func NewCmdStudentReposPull(f *cmdutil.Factory) *cobra.Command {
}

for _, r := range entries {
if !r.IsDir() {
continue
}
clonePath := filepath.Join(fullPath, r.Name())
fmt.Printf("Pulling repo: %v\n", clonePath)
err = os.Chdir(clonePath)
Expand Down

0 comments on commit 77139c7

Please sign in to comment.