From 555b2a252428b18c6df744d971a692ab3af14ee3 Mon Sep 17 00:00:00 2001 From: eeemsi Date: Mon, 13 Feb 2023 15:35:53 +0100 Subject: [PATCH] fix (zshrc): the command is not necessarily invoked at the top-level of a specific repository so the correct work-tree must be specified --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index e70e2dd..ef8fdb6 100644 --- a/zshrc +++ b/zshrc @@ -68,7 +68,7 @@ alias gd='g diff' alias glog='g log --graph --oneline' alias gst='g status --short --branch' # update all repositories within the current directory -alias update_repositories='find . -name ".git" -type d | xargs -P8 -I{} git --git-dir={} pull' +alias update_repositories='find . -name ".git" -type d | xargs -P4 -I{} git --git-dir={} --work-tree={} pull' # Suppresses line numbers in less alias less='less --line-numbers'