]> git.phdru.name Git - git-scripts.git/commitdiff
Style(update-remotes): Fix 3-spaces indents -> 4-spaces
authorOleg Broytman <phd@phdru.name>
Tue, 20 Aug 2024 12:55:46 +0000 (15:55 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 20 Aug 2024 13:00:27 +0000 (16:00 +0300)
update-remotes

index 02ac77a8c8cc7eee4b084275ce473c41c80a0e2c..7d8f0c2522adee2561ae5153a7173bf289b57fbb 100755 (executable)
@@ -6,16 +6,16 @@ origin="`git config --get --path remote.origin.url`" || :
 branches="master ${1:+$@}"
 
 if [ -n "$origin" ]; then
-   if [ -n "$current" ]; then
-      echo "Config error (both origin and current)" >&2
-      exit 1
-   else
-      cd "$origin"
-      exec ./update-remotes "$@"
-   fi
+    if [ -n "$current" ]; then
+        echo "Config error (both origin and current)" >&2
+        exit 1
+    else
+        cd "$origin"
+        exec ./update-remotes "$@"
+    fi
 elif [ -z "$current" ]; then
-   echo "Wrong directory error (neither origin nor current)" >&2
-   exit 1
+    echo "Wrong directory error (neither origin nor current)" >&2
+    exit 1
 fi
 
 git fetch current
@@ -24,7 +24,7 @@ git set-date
 
 web="`git config --get --path remote.web.url`"
 if [ -n "$web" ]; then
-   git push --force web $branches
+    git push --force web $branches
 fi
 
 cd "$current"