[Libreoffice-commits] core.git: g
Stephan Bergmann
sbergman at redhat.com
Wed Jan 14 06:42:30 PST 2015
g | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit a3e51e2706f37f4a7a3a3276d96fd4bcad7f5f7c
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jan 14 15:42:00 2015 +0100
Some quoting fixes
Change-Id: I3b375c67ed84f29360cbc9933f4a1e5c7cbe3277
diff --git a/g b/g
index 0d899b4..bd4270a 100755
--- a/g
+++ b/g
@@ -37,7 +37,7 @@ local hook_name
if [ -d ${repo?}/.git ] ; then
# use core's hook by default
- for hook_name in $(ls -1 ${COREDIR?}/.git-hooks) ; do
+ for hook_name in $(ls -1 "${COREDIR?}/.git-hooks") ; do
hook="${repo?}/.git/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
@@ -45,7 +45,7 @@ local hook_name
fi
done
# override if need be by the submodules' own hooks
- for hook_name in $(ls -1 ${COREDIR?}/${repo?}/.git-hooks 2>/dev/null) ; do
+ for hook_name in $(ls -1 "${COREDIR?}/${repo?}/.git-hooks" 2>/dev/null) ; do
hook="${repo?}/.git/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
@@ -53,7 +53,7 @@ local hook_name
fi
done
elif [ -d .git/modules/${repo}/hooks ] ; then
- for hook_name in $(ls -1 ${COREDIR?}/.git-hooks) ; do
+ for hook_name in $(ls -1 "${COREDIR?}/.git-hooks") ; do
hook=".git/modules/${repo?}/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
@@ -61,7 +61,7 @@ local hook_name
fi
done
# override if need be by the submodules' own hooks
- for hook_name in $(ls -1 ${COREDIR?}/${repo?}/.git-hooks 2>/dev/null) ; do
+ for hook_name in $(ls -1 "${COREDIR?}/${repo?}/.git-hooks" 2>/dev/null) ; do
hook=".git/modules/${repo?}/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
@@ -78,8 +78,8 @@ local repo
local hook_name
local hook
- pushd ${COREDIR?} > /dev/null
- for hook_name in $(ls -1 ${COREDIR?}/.git-hooks) ; do
+ pushd "${COREDIR?}" > /dev/null
+ for hook_name in $(ls -1 "${COREDIR?}/.git-hooks") ; do
hook=".git/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
More information about the Libreoffice-commits
mailing list