popcorn-kernel / popcorn

the popcorn kernel project
https://popcorn-kernel.dev
MIT License
10 stars 5 forks source link

Attempt to automate deleting stale branches #32

Closed Sparkles-Laurel closed 1 year ago

Sparkles-Laurel commented 1 year ago

title is self-describing

SatoTsukasaCode commented 1 year ago

oh no

SatoTsukasaCode commented 1 year ago

looks like it does not work

Sparkles-Laurel commented 1 year ago

Run git branch -d delete-stale-branches git branch -d delete-stale-branches shell: /usr/bin/bash -e {0} fatal: not a git repository (or any of the parent directories): .git Error: Process completed with exit code 128.

:nvidia:

Sparkles-Laurel commented 1 year ago

Imma look into this seems like we lack a .git directory

Sparkles-Laurel commented 1 year ago
[sparky@cehennet popcorn]$ ls -lA
total 216
drwxr-xr-x 2 sparky sparky   4096 Jul 17 22:00 .cargo
drwxr-xr-x 8 sparky sparky   4096 Jul 17 22:00 .git
drwxr-xr-x 3 sparky sparky   4096 Jul 16 15:58 .github
-rw-r--r-- 1 sparky sparky     18 Jul 16 15:58 .gitignore
-rw-r--r-- 1 sparky sparky 167055 Jul 16 16:01 2023-07-16-160122_1366x768_scrot.png
-rw-r--r-- 1 sparky sparky    716 Jul 17 22:00 Cargo.toml
-rw-r--r-- 1 sparky sparky   1076 Jul 16 15:58 LICENSE
-rw-r--r-- 1 sparky sparky    409 Jul 17 22:00 Makefile
-rw-r--r-- 1 sparky sparky   3718 Jul 16 15:58 README.md
-rw-r--r-- 1 sparky sparky   1147 Jul 17 22:00 SECURITY.md
drwxr-xr-x 2 sparky sparky   4096 Jul 17 22:00 arch
drwxr-xr-x 2 sparky sparky   4096 Jul 17 22:00 locale
drwxr-xr-x 4 sparky sparky   4096 Jul 17 22:00 src
drwxr-xr-x 2 sparky sparky   4096 Jul 17 22:00 tests

we do have a .git directory

Sparkles-Laurel commented 1 year ago

can we instead use a hook?

SatoTsukasaCode commented 1 year ago

i guess so