Bug 26738

Summary: bugzilla-tool apply-patch throws exception in Linux
Product: WebKit Reporter: Jan Alonzo <jmalonzo>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
convert head to uppercase HEAD mrowe: review+

Description Jan Alonzo 2009-06-25 16:03:34 PDT
bugzilla-tool fails with the following backtrace. Git seems to be case-sensitive with "HEAD" in Linux (at least). Patch coming..

Fetching: https://bugs.webkit.org/show_bug.cgi?id=26583                                                                                                                                                             
fatal: ambiguous argument 'head': unknown revision or path not in the working tree.                                                                                                                                 
Use '--' to separate paths from revisions                                                                                                                                                                           
Traceback (most recent call last):                                                                                                                                                                                  
  File "./WebKitTools/Scripts/bugzilla-tool", line 513, in <module>                                                                                                                                                 
    main()                                                                                                                                                                                                          
  File "./WebKitTools/Scripts/bugzilla-tool", line 510, in main                                                                                                                                                     
    return tool.main()                                                                                                                                                                                              
  File "./WebKitTools/Scripts/bugzilla-tool", line 505, in main                                                                                                                                                     
    return command_object.execute(command_options, command_args, self)                                                                                                                                              
  File "./WebKitTools/Scripts/bugzilla-tool", line 190, in execute                                                                                                                                                  
    tool.scm().ensure_clean_working_directory(options.force_clean)                                                                                                                                                  
  File "/home/jmalonzo/OpenSource/WebKit/WebKitTools/Scripts/modules/scm.py", line 74, in ensure_clean_working_directory                                                                                            
    if not force and not self.working_directory_is_clean():                                                                                                                                                         
  File "/home/jmalonzo/OpenSource/WebKit/WebKitTools/Scripts/modules/scm.py", line 242, in working_directory_is_clean                                                                                               
    return self.run_command("git diff-index head") == ""                                                                                                                                                            
  File "/home/jmalonzo/OpenSource/WebKit/WebKitTools/Scripts/modules/scm.py", line 68, in run_command                                                                                                               
    raise ScriptError('Failed to run "%s"  exit_code: %d  cwd: %s' % (command, exit_code, cwd))                                                                                                                     
modules.scm.ScriptError: Failed to run "git diff-index head"  exit_code: 128  cwd: None                                                                                                                             
zsh: exit 1     ./WebKitTools/Scripts/bugzilla-tool apply-patches --no-update 26583
Comment 1 Jan Alonzo 2009-06-25 16:06:08 PDT
Created attachment 31883 [details]
convert head to uppercase HEAD
Comment 2 Mark Rowe (bdash) 2009-06-25 16:27:31 PDT
Comment on attachment 31883 [details]
convert head to uppercase HEAD

LOL.  r=me
Comment 3 Jan Alonzo 2009-06-25 16:37:56 PDT
(In reply to comment #2)
> (From update of attachment 31883 [details] [review])
> LOL.  r=me
> 

Landed in r45210