sniffer icon indicating copy to clipboard operation
sniffer copied to clipboard

git can cause sniffer to go BONKERS

Open derek-adair opened this issue 10 years ago • 4 comments

Perhaps there is nothing to be done about this, but there seems to be some funny behavior with certain git actions. I rebased something the other day, and it re-ran my test suite about 4-5 times.

I'm running django 1.8, python 3.4 and selenium 2.45, i believe I am using the latest pypi sniffer (0.3.5). I will continue to provide more meaningful details and perhaps compile a list of behaviors for you. For now, this is all i got!

derek-adair avatar May 06 '15 17:05 derek-adair

Yeah. Sniffer currently doesn't ignore watching repository directory. Sounds like a great enhancement though.

— Sent from my iPhone

On Wed, May 6, 2015 at 10:43 AM, Derek [email protected] wrote:

Perhaps there is nothing to be done about this, but there seems to be some funny behavior with certain git actions. I rebased something the other day, and it re-ran my test suite about 4-5 times.

I'm running django 1.8, python 3.4 and selenium 2.45, i believe I am using the latest pypi sniffer (0.3.5). I will continue to provide more meaningful details and perhaps compile a list of behaviors for you. For now, this is all i got!

Reply to this email directly or view it on GitHub: https://github.com/jeffh/sniffer/issues/28

jeffh avatar May 11 '15 16:05 jeffh

The main symptom is when i rebase. Something about when I am in the middle of squashing / merging. This may not even be practical to switch. Seems like I just may need to cancel the sniffer loop and restart it.

So, its probably rather impractical enhancement; solved w/ a manual workaround or directory structure change (e.g. not have my code in my root git dir)

derek-adair avatar May 18 '15 15:05 derek-adair

Sniffer could support it by ignoring dotfiles (anything that prefixes with a period). I don't think that would be surprising behavior, but I could be wrong about that.

jeffh avatar May 22 '15 06:05 jeffh

Jeez, i'd never thought of something that obvious and simple. I'll probably figure out a way to manually ignore the .git dir for now.

derek-adair avatar May 24 '15 16:05 derek-adair