-
-
Notifications
You must be signed in to change notification settings - Fork 68
cli: No updates available for schema shouldn't be an error #317
Copy link
Copy link
Open
Labels
Description
I am just setting up Makefile for building mod and I encounter this issue when up-to-date schema causes error.
I believe this is a mistake, and it should be just a warning.
rpfm/rpfm_lib/src/integrations/git.rs
Lines 201 to 215 in e1fa95b
| // If we're up to date, nothing more is needed. | |
| if analysis.0.is_up_to_date() { | |
| // Reset the repo to his original state after the check | |
| if current_branch_name != master_refname { | |
| self.checkout_branch(&repo, ¤t_branch_name)?; | |
| } | |
| if stash_id.is_ok() { | |
| let _ = repo.stash_pop(0, None); | |
| } | |
| Err(RLibError::GitErrorNoUpdatesAvailable(self.url.to_owned())) | |
| } | |
| // If we can do a fast-forward, we do it. This is the preferred option. |
$ make init
cd ./contrib/rpfm && \
rpfm_cli --game rome_2 schemas update --schema-path ./
17:28:13 [INFO] Logger initialized.
17:28:13 [INFO] Sentry Logging support enabled. Starting...
17:28:14 [ERROR] No updates available for the following git repository: https://github.com/Frodo45127/rpfm-schemas.
make: *** [init] Error 1
Reactions are currently unavailable