cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
955 stars 33 forks source link

LFS support #158

Closed miconx closed 1 year ago

miconx commented 1 year ago

does gickup support LFS files wihtin repositories? i used gickup to backup a repo with lfs files but the files did not appear in the destination repo for it seems that they are ignored completely thanks for any hints

cooperspencer commented 1 year ago

I didn't have LFS in mind when I wrote gickup. Right now it doesn't support it, I'll take a look at go-git and figure out how to enable it.

cooperspencer commented 1 year ago

go-git doesn't support lfs. I could use the git-lfs command until go-git supports it or until another module becomes available.

miconx commented 1 year ago

ok thank you - btw thans for releasing gickup its super useful ;-)

cooperspencer commented 1 year ago

You are very welcome, always glad when someone uses my tools :smile: I created a new branch called git-lfs, can you compile and test it to see if it does what you need? The config for lfs is like this:

destination:
  local:
    - path: ~/backup
      lfs: true
cooperspencer commented 1 year ago

feature is now included in the main branch. If you run into any problems, feel free to reopen the issue.