Skip to content

Commit 725512e

Browse files
committed
[vscode-*] Fix open in clone project at startup
When cloning a repository ending in .git (as is usually the case) the basename command returned the wrong folder to open as workspace. Using a correct [basename](https://www.man7.org/linux/man-pages/man1/basename.1.html) should fix this
1 parent f603663 commit 725512e

16 files changed

Lines changed: 16 additions & 16 deletions

File tree

charts/vscode-pyspark/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type: application
2424
# This is the chart version. This version number should be incremented each time you make changes
2525
# to the chart and its templates, including the app version.
2626
# Versions are expected to follow Semantic Versioning (https://semver.org/)
27-
version: 3.0.1
27+
version: 3.0.2
2828
dependencies:
2929
- name: library-chart
3030
version: 2.0.3

charts/vscode-pyspark/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ spec:
219219
{{- end }}
220220
command: ["/bin/sh","-c"]
221221
{{- if .Values.git.asCodeServerRoot }}
222-
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY)"]
222+
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY) .git"]
223223
{{- else }}
224224
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
225225
{{- end }}

charts/vscode-python-gpu/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sources:
1111
- https://github.com/InseeFrLab/images-datascience
1212
- https://github.com/InseeFrLab/helm-charts-interactive-services
1313
type: application
14-
version: 2.4.3
14+
version: 2.4.4
1515
dependencies:
1616
- name: library-chart
1717
version: 2.0.3

charts/vscode-python-gpu/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ spec:
171171
{{- end }}
172172
command: ["/bin/sh","-c"]
173173
{{- if .Values.git.asCodeServerRoot }}
174-
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY)"]
174+
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY) .git"]
175175
{{- else }}
176176
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
177177
{{- end }}

charts/vscode-python/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type: application
2222
# This is the chart version. This version number should be incremented each time you make changes
2323
# to the chart and its templates, including the app version.
2424
# Versions are expected to follow Semantic Versioning (https://semver.org/)
25-
version: 2.4.3
25+
version: 2.4.4
2626
dependencies:
2727
- name: library-chart
2828
version: 2.0.3

charts/vscode-python/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ spec:
171171
{{- end }}
172172
command: ["/bin/sh","-c"]
173173
{{- if .Values.git.asCodeServerRoot }}
174-
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY)"]
174+
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY .git)"]
175175
{{- else }}
176176
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
177177
{{- end }}

charts/vscode-pytorch-gpu/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sources:
1111
- https://github.com/InseeFrLab/images-datascience
1212
- https://github.com/InseeFrLab/helm-charts-interactive-services
1313
type: application
14-
version: 2.4.3
14+
version: 2.4.4
1515
dependencies:
1616
- name: library-chart
1717
version: 2.0.3

charts/vscode-pytorch-gpu/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ spec:
171171
{{- end }}
172172
command: ["/bin/sh","-c"]
173173
{{- if .Values.git.asCodeServerRoot }}
174-
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY)"]
174+
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY) .git"]
175175
{{- else }}
176176
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
177177
{{- end }}

charts/vscode-pytorch/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sources:
1010
- https://github.com/InseeFrLab/images-datascience
1111
- https://github.com/InseeFrLab/helm-charts-interactive-services
1212
type: application
13-
version: 2.4.3
13+
version: 2.4.4
1414
dependencies:
1515
- name: library-chart
1616
version: 2.0.3

charts/vscode-pytorch/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ spec:
171171
{{- end }}
172172
command: ["/bin/sh","-c"]
173173
{{- if .Values.git.asCodeServerRoot }}
174-
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY)"]
174+
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY) .git"]
175175
{{- else }}
176176
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
177177
{{- end }}

0 commit comments

Comments
 (0)