Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Issue 19278004: Use plain sh instead of bash in the git template hooks. (Closed)

Created:
7 years, 5 months ago by Raphael Kubo da Costa (rakuco)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

The scripts are simple enough and should work fine under any POSIX shell, which is particularly helpful when one is using `gclient sync' on a platform that does not have /bin/bash (ie. it's installed in another location or not present at all), since the hooks are automatically added to the git checkouts. While here, just `exec' the scripts directly instead of invoking another shell by hand and remove the redundant `exit 0' lines. R=cmp@chromium.org,dpranke@chromium.org,szager@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=214181

Patch Set 1 #

Total comments: 4

Patch Set 2 : exec sh -> exec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -22 lines) Patch
M git-templates/hooks/applypatch-msg View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/post-applypatch View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/post-checkout View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/post-commit View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/post-merge View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/post-update View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/pre-applypatch View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/pre-auto-gc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/pre-commit View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/pre-rebase View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git-templates/hooks/prepare-commit-msg View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Raphael Kubo da Costa (rakuco)
7 years, 5 months ago (2013-07-15 22:29:17 UTC) #1
Raphael Kubo da Costa (rakuco)
Ping?
7 years, 4 months ago (2013-07-28 22:15:41 UTC) #2
iannucci
On 2013/07/28 22:15:41, Raphael Kubo da Costa (rakuco) wrote: > Ping? szager, you should look ...
7 years, 4 months ago (2013-07-28 22:18:21 UTC) #3
iannucci
On 2013/07/28 22:18:21, iannucci wrote: > On 2013/07/28 22:15:41, Raphael Kubo da Costa (rakuco) wrote: ...
7 years, 4 months ago (2013-07-28 22:18:56 UTC) #4
szager1
lgtm I'm curious, though, what platform you have in mind here. As far as I ...
7 years, 4 months ago (2013-07-29 06:41:44 UTC) #5
Isaac (away)
https://codereview.chromium.org/19278004/diff/1/git-templates/hooks/applypatch-msg File git-templates/hooks/applypatch-msg (right): https://codereview.chromium.org/19278004/diff/1/git-templates/hooks/applypatch-msg#newcode1 git-templates/hooks/applypatch-msg:1: #!/bin/sh These lines look fine. https://codereview.chromium.org/19278004/diff/1/git-templates/hooks/applypatch-msg#newcode3 git-templates/hooks/applypatch-msg:3: [ -e ...
7 years, 4 months ago (2013-07-29 08:15:10 UTC) #6
Isaac (away)
https://codereview.chromium.org/19278004/diff/1/git-templates/hooks/applypatch-msg File git-templates/hooks/applypatch-msg (right): https://codereview.chromium.org/19278004/diff/1/git-templates/hooks/applypatch-msg#newcode3 git-templates/hooks/applypatch-msg:3: [ -e "build/git-hooks/applypatch-msg" ] && exec sh "build/git-hooks/applypatch-msg" "$@" ...
7 years, 4 months ago (2013-07-29 08:18:01 UTC) #7
Raphael Kubo da Costa (rakuco)
On 2013/07/29 06:41:44, szager1 wrote: > lgtm > > I'm curious, though, what platform you ...
7 years, 4 months ago (2013-07-29 08:18:51 UTC) #8
Raphael Kubo da Costa (rakuco)
On 2013/07/29 08:18:51, Raphael Kubo da Costa (rakuco) wrote: > On 2013/07/29 06:41:44, szager1 wrote: ...
7 years, 4 months ago (2013-07-29 08:23:09 UTC) #9
Isaac (away)
https://codereview.chromium.org/19278004/diff/1/git-templates/hooks/applypatch-msg File git-templates/hooks/applypatch-msg (right): https://codereview.chromium.org/19278004/diff/1/git-templates/hooks/applypatch-msg#newcode4 git-templates/hooks/applypatch-msg:4: exit 0 also exit 0 is redundant, can you ...
7 years, 4 months ago (2013-07-29 08:24:53 UTC) #10
Isaac (away)
Sorry; didn't see you alreayd uploaded patch. LGTM
7 years, 4 months ago (2013-07-29 08:25:24 UTC) #11
Isaac (away)
Thanks! (Still lgtm)
7 years, 4 months ago (2013-07-29 08:27:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raphael.kubo.da.costa@intel.com/19278004/16001
7 years, 4 months ago (2013-07-29 08:34:28 UTC) #13
commit-bot: I haz the power
Presubmit check for 19278004-16001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 4 months ago (2013-07-29 08:35:57 UTC) #14
Raphael Kubo da Costa (rakuco)
Committed manually as https://src.chromium.org/viewvc/chrome?view=revision&revision=214177 unfortunately it got in without the review url in the message, ...
7 years, 4 months ago (2013-07-29 11:59:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raphael.kubo.da.costa@intel.com/19278004/12001
7 years, 4 months ago (2013-07-29 12:11:29 UTC) #16
Isaac (away)
Hi Raphael -- I had to revert your commit, I realized the exit 0 was ...
7 years, 4 months ago (2013-07-29 12:12:04 UTC) #17
commit-bot: I haz the power
Change committed as 214181
7 years, 4 months ago (2013-07-29 12:13:39 UTC) #18
Raphael Kubo da Costa (rakuco)
On 2013/07/29 12:12:04, Isaac wrote: > Hi Raphael -- I had to revert your commit, ...
7 years, 4 months ago (2013-07-29 12:49:41 UTC) #19
szager1
On 2013/07/29 12:49:41, Raphael Kubo da Costa (rakuco) wrote: > On 2013/07/29 12:12:04, Isaac wrote: ...
7 years, 4 months ago (2013-07-29 16:04:31 UTC) #20
Isaac (away)
7 years, 4 months ago (2013-07-29 16:47:44 UTC) #21
Message was sent while issue was closed.
Except on windows exec doesn't work that way.

Powered by Google App Engine
This is Rietveld 408576698