From 1f8ca8a7fc819c83d6ef2de33c58f5b152b08fc0 Mon Sep 17 00:00:00 2001
From: XargonWan <xargonwan@gmail.com>
Date: Fri, 22 Apr 2022 22:26:49 +0900
Subject: [PATCH] Some feixes to flathub-pr

---
 flathub-pr.sh | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/flathub-pr.sh b/flathub-pr.sh
index c0560456..67f11e65 100755
--- a/flathub-pr.sh
+++ b/flathub-pr.sh
@@ -12,7 +12,7 @@ cd ~/flathub
 rm -rf shared-submodules
 rm -rf rd-submodules
 
-# # rebuilding submodules
+# rebuilding submodules
 git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
     while read path_key path
     do
@@ -38,12 +38,8 @@ git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
 git submodule sync;
 
 # Now actually pull all the modules. I used to use this...
-#
-# git submodule update --init --remote --force --recursive
-# ...but the submodules would check out in detached HEAD state and I 
-# didn't like that, so now I do this...
-
 git submodule foreach --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)';
+
 rm flathub-pr.sh
 git add *
 git commit -m "Updating flathub"