Repository navigation
FIx issue #464 corrupt log file - #469
Conversation
It must only have the first line of the commit messages, not the while multiple line log.
|
Do you think it's possible for you to write a muthaf*ckin' test which goes red if the change is not there ? The current test-suite should be a good starting-point for a fixture-based test. Think about that sh*t. |
|
Please don't wait for me to write the muthaf*ckin' test. I have a lot of work on my plate at moment. How I detected the muthaf*ckin' bug was:
|
This fixes a UI problem with using GitPython from a GUI python probgram. Each repo that is opened creates a git cat-file processs and that provess will create a console window with out this change.
|
I'm not sure how to write the muthaf*ckin' tests you want. That's some bullsh*t. Can you point to goddamn docs on what is required? |
| else: | ||
| creationflags = None | ||
|
|
||
| p = Popen(['ps', '--ppid', str(pid)], stdout=PIPE, creationflags) |
There was a problem hiding this muthaf*ckin' comment.
I am afraid that using creationflags as positional argument doesn't actually end up in the f*ckin' correct spot. Also I thought that positional arguments after keyword args are not allowed.
There was a problem hiding this muthaf*ckin' comment.
This goddamn concern is reflected in actual breakage as well: https://travis-ci.org/gitpython-developers/GitPython/jobs/148304657#L318
|
Now this PR contains two distinct and independent changes. The most recent one is hard to test, and I'd be fine without one. |
|
I fixed the goddamn keyword parameter passing. |
- add a second line to commit messages with the "BAD MESSAGE" text - read in the log and confirm that the seond line is not in the log file
|
I have added a basic test by changing one of the existing muthaf*ckin' test_repo.py tests. You can see the test fail by undoing the first line fix and running the muthaf*ckin' test. |
|
@barry-scott Thank you, looks f*ckin' good now ! I am particularly excited about the test, and hope in future you can give test-first development a f*ckin' shot as well. Goddamn. |
|
To get the f*ckin' test as one patch and the the test + fix as a second you will have to fix the goddamn dependency of the tests on master, for real. Use of master means that you do not have a reproducible test. Its inputs depend on what the muthaf*ckin' user did to create there master. Believe that sh*t. I suspect that if you had to create the f*ckin' test data that you use master for you might have found this f*ckin' bugs ages ago. |
Must only append the bad-ass first line of the commit to the muthaf*ckin' log
Otherwise the log file is not parsable by GitPython.