Bug 67544

Summary: webkit-patch in a git checkout falls over when a patch removes the last file in a directory
Product: WebKit Reporter: James Robinson <jamesr>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: abarth, dbates, dpranke, eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description James Robinson 2011-09-02 17:32:06 PDT
If you have a file foo/bar.txt and try to remove it, by default in git that will remove the foo/ folder as well (since in git directories are not tracked, only files are).  webkit-patch upload/land-cowboy/etc will then die because they attempt to determine the version control system by looking at the enclosing directory of modified files.  The workaround is easy (just mkdir foo and re-run the command) but definitely non-obvious.

This shows up for me quite a bit when doing rebaselines since the optimize step can often remove the last baseline from some platform-specific directory.
Comment 1 Adam Barth 2011-09-02 17:35:21 PDT
I might need some help fixing this because my git foo is somewhat... light.  :)