fix_git #155

Merged
isvida merged 2 commits from fix_git into main 2026-05-04 10:14:15 +02:00
Collaborator

WIP

Corrección en la biblioteca gitlib

WIP Corrección en la biblioteca gitlib
isvida added 2 commits 2026-05-04 10:13:33 +02:00
1a2d19c6af fix(ugr-20260429): apply all GitLib bugfixes from UGR deployment
- SSH: add GIT_SSH_COMMAND=StrictHostKeyChecking=accept-new
- Locks: write PID to lock files (create_metadata, restore_metadata)
- Add _is_lock_alive() to detect stale locks by PID
- is_broken() auto-removes stale locks instead of falsely blocking
- is_broken() fix: create_meta_lock was incorrectly pointing to restore_metadata.lock
- _atomic_replace_if_changed(): skip rename if MD5 unchanged to avoid spurious git objects
- commit(): use repo.git.add(A=True) instead of repo.index.add('*')
- cloneRepo(): remove debug os._exit(10) that was killing the process
- cloneRepo(): add try/except around clone_from() with stderr logging and partial-dir cleanup
- cloneRepo(): fix IndexError on repo.heads[branch] (moved inside else block, use remotes.origin.refs)
- cloneRepo(): add git clean -fd after reset --hard to remove untracked files
- cloneRepo(): fix logger.info missing format argument for destination
- ModificarImagenGit: force_push=True by default, opt-out via no_force_push
- Add __main__.py for standalone GitLib execution
isvida merged commit 655ca3e500 into main 2026-05-04 10:14:15 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: opengnsys/ogclone-engine#155
There is no content yet.