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

Unified Diff: git-templates/hooks/pre-auto-gc

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 side-by-side diff with in-line comments
Download patch
Index: git-templates/hooks/pre-auto-gc
diff --git a/git-templates/hooks/pre-auto-gc b/git-templates/hooks/pre-auto-gc
index 0b87a0f80b060c915dd5146e0b0c7da5ee6de5b4..d4a2d30957434f260c3201ece6afaeb1adbab7ec 100755
--- a/git-templates/hooks/pre-auto-gc
+++ b/git-templates/hooks/pre-auto-gc
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
-[ -e "build/git-hooks/pre-auto-gc" ] && exec bash "build/git-hooks/pre-auto-gc" "$@"
+[ -e "build/git-hooks/pre-auto-gc" ] && exec sh "build/git-hooks/pre-auto-gc" "$@"
exit 0

Powered by Google App Engine
This is Rietveld 408576698