Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 1406 in gerrit: Hooks are unusable under Windows
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ger...@googlecode.com  
View profile  
 More options May 23 2012, 6:23 am
From: ger...@googlecode.com
Date: Wed, 23 May 2012 10:23:24 +0000
Local: Wed, May 23 2012 6:23 am
Subject: Issue 1406 in gerrit: Hooks are unusable under Windows
Status: New
Owner: ----
Labels: Type-Bug Priority-Minor

New issue 1406 by org...@gmail.com: Hooks are unusable under Windows
http://code.google.com/p/gerrit/issues/detail?id=1406

Gerrit tries to run hooks as system executable. While this works under  
linux, Windows doesn't allow running bat files (or shell scripts) without  
extension.

error_log:
[2012-05-23 13:18:21,223] ERROR com.google.gerrit.common.ChangeHookRunner :  
Error running hook C:\Projects\gerrit\hooks\change-restored
java.io.IOException: Cannot run  
program "C:\Projects\gerrit\hooks\change-restored" (in  
directory "C:\Projects\gerrit\git\Project.git"): CreateProcess  
error=193, %1 is not a valid Win32 application
        at java.lang.ProcessBuilder.start(Unknown Source)
        at  
com.google.gerrit.common.ChangeHookRunner$HookTask.run(ChangeHookRunner.jav a:499)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at  
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access $201(Unknown  
Source)
        at  
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Un known  
Source)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:333)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid  
Win32 application
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ger...@googlecode.com  
View profile  
 More options Jun 4 2012, 7:12 pm
From: ger...@googlecode.com
Date: Mon, 04 Jun 2012 23:12:05 +0000
Local: Mon, Jun 4 2012 7:12 pm
Subject: Re: Issue 1406 in gerrit: Hooks are unusable under Windows

Comment #1 on issue 1406 by choro...@wikimedia.org: Hooks are unusable  
under Windows
http://code.google.com/p/gerrit/issues/detail?id=1406

Can this be worked around by adding an extension then changing  
gerrit.config's [hooks] section to point to the new name?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ger...@googlecode.com  
View profile  
 More options Jun 5 2012, 12:25 am
From: ger...@googlecode.com
Date: Tue, 05 Jun 2012 04:25:44 +0000
Local: Tues, Jun 5 2012 12:25 am
Subject: Re: Issue 1406 in gerrit: Hooks are unusable under Windows

Comment #2 on issue 1406 by org...@gmail.com: Hooks are unusable under  
Windows
http://code.google.com/p/gerrit/issues/detail?id=1406

It can. I use a batch file and it works.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ger...@googlecode.com  
View profile  
 More options Sep 20 2012, 10:27 am
From: ger...@googlecode.com
Date: Thu, 20 Sep 2012 14:27:06 +0000
Local: Thurs, Sep 20 2012 10:27 am
Subject: Re: Issue 1406 in gerrit: Hooks are unusable under Windows

Comment #3 on issue 1406 by wer...@beroux.com: Hooks are unusable under  
Windows
http://code.google.com/p/gerrit/issues/detail?id=1406

Like Tortoise, it should probably look for *.exe, *.bat, *.cmd.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »