alichtman / shallow-backup

Git-integrated backup tool for macOS and Linux devs.
MIT License
1.21k stars 247 forks source link

Successful commit reported when no commit happened #332

Closed alichtman closed 8 months ago

alichtman commented 9 months ago
~ via  v20.2.0 took 39s 
08:19:06 AM ➜ shallow-backup --backup-dots     

              dP                dP dP                        dP                         dP
              88                88 88                        88                         88
     ,d8888'  88d888b. .d8888b. 88 88 .d8888b. dP  dP  dP    88d888b. .d8888b. .d8888b. 88  .dP  dP    dP 88d888b.
     Y8ooooo, 88'  `88 88'  `88 88 88 88'  `88 88  88  88    88'  `88 88'  `88 88'  `"" 88888"   88    88 88'  `88
           88 88    88 88.  .88 88 88 88.  .88 88.88b.88'    88.  .88 88.  .88 88.  ... 88  `8b. 88.  .88 88.  .88
     `88888P' dP    dP `88888P8 dP dP `88888P' 8888P Y8P     88Y8888' `88888P8 `88888P' dP   `YP `88888P' 88Y888P'
                                                                                                          88
                                                                                                          dP    
    v6.0 by Aaron Lichtman (@alichtman)

Detected git repo.
Updating .gitignore file at /home/alichtman/shallow-backup/.gitignore with config from root-gitignore
Updating .gitignore file at /home/alichtman/shallow-backup/dotfiles/.gitignore with config from dotfiles-gitignore

##########
# DOTFILES
##########

Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config/git
Creating: /home/alichtman/shallow-backup/dotfiles/.config/git
Creating: /home/alichtman/shallow-backup/dotfiles/.config/jrnl
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config/radare2
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config/tuir
Creating: /home/alichtman/shallow-backup/dotfiles/.config/zathura
Creating: /home/alichtman/shallow-backup/dotfiles
Creating: /home/alichtman/shallow-backup/dotfiles/.config/task
Creating: /home/alichtman/shallow-backup/dotfiles
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles/.config
Creating: /home/alichtman/shallow-backup/dotfiles
Backing up dotfolders...
Backing up dotfiles...
Making new commit...
Successful commit.

~ via  v20.2.0 took 639ms 
08:19:08 AM ➜ j dotfiles

dotfiles on  master [✘!?] took 32ms 
08:19:21 AM ➜ gst
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
    modified:   .config/jrnl/jrnl.yaml
    modified:   .config/nvim/init.vim
    modified:   .config/shallow-backup.conf
    modified:   .config/zsh/.aliases
    modified:   .config/zsh/.zshrc
    deleted:    .ghc/ghci.conf
    modified:   .gitignore
    modified:   .zshenv

Untracked files:
  (use "git add <file>..." to include in what will be committed)
    .config/zsh/.zcomet/
    .config/zsh/.zcompcache/
    .config/zsh/completions/

no changes added to commit (use "git add" and/or "git commit -a")

dotfiles on  master [✘!?] took 6ms 
08:19:23 AM ➜ glog
* 1f916be (HEAD -> master, origin/master, origin/HEAD) Massive neovim config refactor, and some other bullshit
* 32faf8e idk man, it's been a long time. There's a lot going on here
* b905d38 Update from Linux dots
...
alichtman commented 8 months ago

No idea how to repro this