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

Side by Side Diff: git-templates/hooks/applypatch-msg

Issue 19278004: Use plain sh instead of bash in the git template hooks. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | git-templates/hooks/post-applypatch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/sh
Isaac (away) 2013/07/29 08:15:10 These lines look fine.
2 2
3 [ -e "build/git-hooks/applypatch-msg" ] && exec bash "build/git-hooks/applypatch -msg" "$@" 3 [ -e "build/git-hooks/applypatch-msg" ] && exec sh "build/git-hooks/applypatch-m sg" "$@"
Isaac (away) 2013/07/29 08:15:10 Can we exec the script directly -- i.e. remove the
Isaac (away) 2013/07/29 08:18:01 Actually -- I'm pretty confident it is OK to remov
4 exit 0 4 exit 0
Isaac (away) 2013/07/29 08:24:53 also exit 0 is redundant, can you remove these lin
OLDNEW
« no previous file with comments | « no previous file | git-templates/hooks/post-applypatch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698