From 92f22f6fc38f30944064f37e0f31d147f50d05c7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Apr 2014 02:30:38 -0300 Subject: Use 'git config --local' at sync-media --- files/sync-media | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files') diff --git a/files/sync-media b/files/sync-media index 8a4d3c4..ec3a8e6 100644 --- a/files/sync-media +++ b/files/sync-media @@ -15,9 +15,9 @@ OPTIONS="$*" # Fix identity function sync_media_identity { - if [ -z "`git config user.email`" ] || [ -z "`git config user.name`" ]; then + if [ -z "`git config --local user.email`" ] || [ -z "`git config --local user.name`" ]; then repo="$(basename `pwd`)" - git config user.name "$repo asset manager" + git config user.name "${repo^} Asset Manager" git config user.email "$repo@assset.manager" fi } -- cgit v1.2.3