detached 2f5e3b7

Fix config.yml not at root level in container v2

commit
2f5e3b77fbf7f585457c3591997cce4455df65c8
author
bnema · · 2023-11-03 09:50 UTC
parent
dfe4d56
signature
unsigned
1 file · +1 -2
M internal/common/initconfig.go +1 -2
@@ -58,8 +58,7 @@ func getConfigDir() (string, error) {
5858 if inContainer, err := docker.IsRunningInContainer(); err != nil {
5959 return "", fmt.Errorf("error checking if running in a container: %w", err)
6060 } else if inContainer {
61- // Return the path for configuration inside the container
62- return "/.config/Gordon", nil
61+ return "/.", nil
6362 }
6463
6564 // For non-container environments, determine the user's home directory
@@ -58,8 +58,7 @@ func getConfigDir() (string, error) {
58 if inContainer, err := docker.IsRunningInContainer(); err != nil {58 if inContainer, err := docker.IsRunningInContainer(); err != nil {
59 return "", fmt.Errorf("error checking if running in a container: %w", err)59 return "", fmt.Errorf("error checking if running in a container: %w", err)
60 } else if inContainer {60 } else if inContainer {
61- // Return the path for configuration inside the container61+ return "/.", nil
62- return "/.config/Gordon", nil
63 }62 }
64 63
65 // For non-container environments, determine the user's home directory64 // For non-container environments, determine the user's home directory

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close