lint
authorShane Jaroch <chown_tee@proton.me>
Sat, 17 Jan 2026 07:53:03 +0000 (02:53 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 17 Jan 2026 07:53:03 +0000 (02:53 -0500)
.github/workflows/termux-android.yml
completions/fish/git-remote-gcrypt.fish
completions/gen_docs.sh

index dbd59aa3f1372a00be470498b9a8514a4dfb2db5..465f90486ca0d71bac60c69f63d3da6962512ec3 100644 (file)
@@ -14,7 +14,7 @@ jobs:
       - uses: actions/checkout@v4
 
       - name: Fix permissions for Docker
-        run: chmod -R 777 .
+        run: chmod -R u+rwX,go+rX .
 
       - name: Run tests in Termux
         run: |
index 9a6a0bd5da69fe5fab22d7314b38ddaf70f5e491..60cb26255294a6381e9d8d5d3b8f10f8f88627b5 100644 (file)
@@ -13,8 +13,6 @@ complete -c git-remote-gcrypt -n "__fish_seen_subcommand_from check" -a "(git re
 complete -c git-remote-gcrypt -n "__fish_seen_subcommand_from stat" -a "(git remote 2>/dev/null)" -d 'Git Remote'
 
 # Clean flags
-complete -c git-remote-gcrypt -f -n "__fish_seen_subcommand_from clean" -l force -d '       Actually delete files (default is scan only)
-        Allow cleaning uninitialized repos (requires --force)
-        Override safety checks (requires --force)'
+complete -c git-remote-gcrypt -f -n "__fish_seen_subcommand_from clean" -l force -d '       Actually delete files (default is scan only)'
 complete -c git-remote-gcrypt -f -n "__fish_seen_subcommand_from clean" -l init -d '        Allow cleaning uninitialized repos (requires --force)'
 complete -c git-remote-gcrypt -f -n "__fish_seen_subcommand_from clean" -l hard -d '        Override safety checks (requires --force)'
index acca7e5978df40e909d1a75c6cc9bc3e3e2ef25c..3d03d4f5ae0555307679c9107adbcdbe69ed634d 100755 (executable)
@@ -109,7 +109,7 @@ CLEAN_FLAGS_FISH=$(echo "$CLEAN_FLAGS_RAW" | while read -r line; do
 
        # Description is looked up separately via grep because it contains spaces
        # escape single quotes for Fish string
-       desc=$(echo "$RAW_HELP" | grep -F -- "$line" | sed 's/^[[:space:]]*//' | cut -d ' ' -f 3- | sed "s/'/\\\\'/g")
+       desc=$(echo "$RAW_HELP" | grep -F -- "$line" | head -n 1 | sed 's/^[[:space:]]*//' | cut -d ' ' -f 3- | sed "s/'/\\\\'/g")
 
        if [[ $f1 == -* ]] && [[ $f2 == --* ]]; then
                short="${f1#-}"