VOLUMES=""
BOXES=""
+# Fix identity
+function sync_media_identity {
+ 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.email "$repo@assset.manager"
+ fi
+}
+
# Syntax check
if [ -z "$VOLUME" ]; then
echo "usage: $BASENAME <volume> [<caches|volumes|boxes> [remotes]]"
(
echo Processing "$MEDIA/$file..."
cd $MEDIA/$file
+ sync_media_identity
if git remote | grep -q "^origin$"; then
echo "Removing origin..."