Bläddra i källkod

test rstudio x

julien colomb 3 år sedan
förälder
incheckning
614b912b75
4 ändrade filer med 20 tillägg och 2 borttagningar
  1. 1 0
      .log/gin.log
  2. 1 1
      03_data/001_raw_data
  3. 1 1
      04_data_analysis/001_analysis_code
  4. 17 0
      SSH-INIT-SYNC

+ 1 - 0
.log/gin.log

@@ -1,3 +1,4 @@
 2022-03-29T16:03:34: Sync script executed
 2022-03-30T12:54:10: Sync script executed
 2022-03-30T12:55:19: Sync script executed
+2022-03-30T14:37:37: Sync script executed

+ 1 - 1
03_data/001_raw_data

@@ -1 +1 @@
-Subproject commit 71af1112416e2b4672d3b88a1de3c769dfbf37ad
+Subproject commit 1dbfa5aa13f450cb1703cff7a50f5f07bd3d0fd5

+ 1 - 1
04_data_analysis/001_analysis_code

@@ -1 +1 @@
-Subproject commit dc5e412ae3ae73ffe036c751557075c4d62d5be1
+Subproject commit 1bb875bf7610758b25c2dc6b83c25756ba5fc655

+ 17 - 0
SSH-INIT-SYNC

@@ -54,5 +54,22 @@ usage() {
 # Set the variable for synchronisation option, see above 
 syncopt="remove"
 
+if test $(gin remotes) ;
+  then
+  # set gin remote from git information (on the hu server)
+  remotegit=$(git remote get-url origin)
+  remotegin="$(echo "$remotegit" | cut -d'/' -f4,5)"
+
+  remotegin="$(echo $remotegin | cut -d' ' -f1)"
+  remotegin="$(echo "hu:""${remotegin/.git}")"
+  gin add-remote primary "$remotegin"
+fi
+
+
+
+
+
+
 echo "start synchronisation in "$syncopt" mode, close window to cancel. change mode by changing the code in a text application"
 sh .scripts/GIN-SYNC
+