summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/gitconfig/gitconfig.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/util/gitconfig/gitconfig.sh b/util/gitconfig/gitconfig.sh
index f456069f3f..105bffc901 100755
--- a/util/gitconfig/gitconfig.sh
+++ b/util/gitconfig/gitconfig.sh
@@ -51,7 +51,18 @@ for d in 3rdparty/{blobs,libhwbase,libgfxinit}; do
git config remote.origin.push HEAD:refs/for/master)
fi
done
+
git config remote.origin.push HEAD:refs/for/master
-git config alias.sup '!git submodule update --remote --rebase && git submodule update --init --checkout'
-git config alias.sup-destroy '!git submodule deinit --force "$(git rev-parse --show-toplevel)"; git submodule init && git submodule update --checkout'
-(git config --includes user.name >/dev/null && git config --includes user.email >/dev/null) || (printf 'Please configure your name and email in git:\n\n git config --global user.name "Your Name Comes Here"\n git config --global user.email your.email@example.com\n'; exit 1)
+git config alias.sup "!git submodule update --remote --rebase && \
+git submodule update --init --checkout"
+
+git config alias.sup-destroy "!git submodule deinit --force \
+\"\$(git rev-parse --show-toplevel)\"; \
+git submodule init && git submodule update --checkout"
+
+(git config --includes user.name >/dev/null && \
+ git config --includes user.email >/dev/null) || \
+ (printf "Please configure your name and email in git:\n\n\
+ git config --global user.name \"Your Name Comes Here\"\n\
+ git config --global user.email your.email@example.com\n"; \
+exit 1)