From 9429706fb65ff08427e3a2d4d16ca7f21467b14f Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Thu, 25 Jan 2024 16:57:49 +0100 Subject: [PATCH] fix in updater --- .../about_upgrade_mightyscape.inx | 22 +++++++++---------- .../about_upgrade_mightyscape.py | 3 ++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.inx b/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.inx index de1865b..5370943 100644 --- a/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.inx +++ b/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.inx @@ -1,7 +1,7 @@ - About/Upgrade MightyScape - fablabchemnitz.de.about_upgrade_mightyscape + About/Upgrade MightyScape + fablabchemnitz.de.about_upgrade_mightyscape ../000_Mightyscape.svg @@ -10,7 +10,7 @@ false false - false + false @@ -40,12 +40,12 @@ - all - - - - - + all + + + + + \ No newline at end of file diff --git a/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.py b/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.py index d2675bc..559aca8 100644 --- a/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.py +++ b/extensions/fablabchemnitz/about_upgrade_mightyscape/about_upgrade_mightyscape.py @@ -72,7 +72,7 @@ class AboutUpgradeMightyScape(inkex.EffectExtension): inkex.utils.debug("Nothing to do! MightyScape is already up to date!") except git.exc.GitCommandError as e: - if "Your local changes to the following files would be overwritten by merge" in e: + if "Your local changes to the following files would be overwritten by merge" in str(e): inkex.utils.debug("Please save or stash your local git changes first and try again. You can enable 'Stash untracked files' to continue.") else: inkex.utils.debug("Error: ") @@ -142,6 +142,7 @@ class AboutUpgradeMightyScape(inkex.EffectExtension): #drop local changed. update might fail if file changes are present if so.stash_untracked is True: local_repo.git.stash('save') + local_repo.git.checkout('origin/master') existingRemotes = [] #check for existing remotes. if one is missing, add it (or delete and recreate) for r in local_repo.remotes: