Bläddra i källkod

gin commit from juliens-MBP

Modified files: 6
julien colomb 2 år sedan
förälder
incheckning
23cbe7fb10
2 ändrade filer med 9 tillägg och 4 borttagningar
  1. 5 1
      .scripts/GIN-sync
  2. 4 3
      .scripts/template_init.command

+ 5 - 1
.scripts/GIN-sync

@@ -92,7 +92,11 @@ if [[ "${syncopt}" == "download" ]]; then
 
 echo "Synchronising main repository"
 
-gin git commit . -m "$commitmessage"
+# add content
+gin commit . -m "$commitmessage"
+# add submodule changes 
+gin git commit . --amend -m "$commitmessage"
+# upload files
 gin sync
 gin upload
 

+ 4 - 3
.scripts/template_init.command

@@ -93,10 +93,11 @@ else
     
     # add a file to tell the user/script to initialise the submodules next time.
     
-    echo "submodules need intitialisation due to project $repo " >> "initialise.txt"
-    
+    echo "submodules need intitialisation due to project "$reposhort"." >> "initialise.txt"
+    gin git add "initialise.txt"
+   
     # push changes on the server and remove the repo from the computer.
-    gin git commit . -m "added project $reposhort"
+    gin git commit  -m "added project $reposhort"
     gin upload
     cd ../
     rm -rf labreports