]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Use 'git config --local' at sync-media
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Apr 2014 05:30:38 +0000 (02:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Apr 2014 05:30:38 +0000 (02:30 -0300)
files/sync-media

index 8a4d3c4f3ed65165ae64cb2602de8143c9a19fa6..ec3a8e676e0f1ce4716c11db0ae07f712af60a2b 100644 (file)
@@ -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
 }