AlexRaubach / MetaWing

Analysis tool for X-Wing Second Edition tournament data
https://meta.listfortress.com/
MIT License
2 stars 3 forks source link

Xwing data2 autosync #16

Closed mwhited closed 4 years ago

mwhited commented 4 years ago

Updated the xwing_data2 sync so it will pull the latest if there is a new version, and added the new points date.

AlexRaubach commented 4 years ago

The version check part works without issue, when I run it with the existing submodule present, I get rails aborted! Git::GitExecuteError: git '-c' 'color.ui=false' clone '--' 'https://github.com/guidokessels/xwing-data2.git' '/mnt/c/dev/MetaWing/vendor/xwing-data2' 2>&1:fatal: destination path '/mnt/c/dev/MetaWing/vendor/xwing-data2' already exists and is not an empty directory. /mnt/c/dev/MetaWing/app/models/importers/xwing_data2.rb:43:in update_submodule'

When I navigate to the submodule and check though, it has been updated and everything works when there isn't an existing submodule. I have a couple things I want to try to fix this, starting with just catching that error.