Closed physcrowley closed 10 months ago
Hi @physcrowley,
If you have uncommitted changed in the repo a pull should fail as this is how git is designed. If you want to put files in their repos to support grading then the best approach is to add those files to a .gitignore in your starter code repo. Then everything should work as advertised.
Hopefully this helps out :)
-Shane
I run git clean -f -d
as part of the post-test cleanup on the student repos and don't otherwise touch their files, so my local repos are clean.
The pull is failing because the script thinks a file in the root folder, TeacherTest.java, is a student repo. I'm not familiar with the language used to make the gh
script, but I could attempt to add an appropriate guard clause and submit a pull request.
it looks like I would need to filter entries at this line before heading into the for loop: https://github.com/github/gh-classroom/blob/aff764e5a50780e0fbcf731a5baaef1bb62b5b20/cmd/gh-classroom/pull/student-repos/student-repos.go#L78
@physcrowley I was just going to implement this fix and saw you already had :) Nice work!
I will look into the starter code option too, but many of my current projects are based on the same blank starter code even though the tests will be different. That's a mod for the next set of starter templates.
This may be similar to issue #14 but I have put test files that I use to test student submissions locally in the "submissions-x" folder, and just noticed that the
pull
command fails at this point (I have aliased the fullgh classroom pull student-repos
with my ownpull
script):