Compare commits

..

2 Commits

Author SHA1 Message Date
Your Name
2c699652b0 v0.2.8 - Almost Final test of fixed versioning system 2025-09-06 05:14:03 -04:00
Your Name
2e4ffc0e79 Add force push for updated tags 2025-09-06 05:11:11 -04:00
2 changed files with 15 additions and 4 deletions

View File

@@ -240,8 +240,13 @@ git_commit_and_push() {
if git push origin "$NEW_VERSION" > /dev/null 2>&1; then if git push origin "$NEW_VERSION" > /dev/null 2>&1; then
print_success "Pushed tag: $NEW_VERSION" print_success "Pushed tag: $NEW_VERSION"
else else
print_error "Failed to push tag: $NEW_VERSION" print_warning "Tag push failed, trying force push..."
exit 1 if git push --force origin "$NEW_VERSION" > /dev/null 2>&1; then
print_success "Force-pushed updated tag: $NEW_VERSION"
else
print_error "Failed to push tag: $NEW_VERSION"
exit 1
fi
fi fi
} }
@@ -283,8 +288,13 @@ git_commit_and_push_no_tag() {
if git push origin "$NEW_VERSION" > /dev/null 2>&1; then if git push origin "$NEW_VERSION" > /dev/null 2>&1; then
print_success "Pushed tag: $NEW_VERSION" print_success "Pushed tag: $NEW_VERSION"
else else
print_error "Failed to push tag: $NEW_VERSION" print_warning "Tag push failed, trying force push..."
exit 1 if git push --force origin "$NEW_VERSION" > /dev/null 2>&1; then
print_success "Force-pushed updated tag: $NEW_VERSION"
else
print_error "Failed to push tag: $NEW_VERSION"
exit 1
fi
fi fi
} }

View File

@@ -25,6 +25,7 @@ extern void log_error(const char* message);
// ================================ // ================================
// CORE CONFIGURATION FUNCTIONS // CORE CONFIGURATION FUNCTIONS
// ================================ // ================================
//
int init_configuration_system(void) { int init_configuration_system(void) {
log_info("Initializing configuration system..."); log_info("Initializing configuration system...");