code_healer 0.1.6 โ 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/code_healer/healing_workspace_manager.rb +11 -4
- data/lib/code_healer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb4a7ded404d0efca6e6e111b0186cc2bdeaef8a6eaf4041fd9799fcc447d044
|
4
|
+
data.tar.gz: 95f4317a52fa36bc1aae2923d497a01c282486de0680548a5e80ff1f15ff6468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad4af34d619b3d1361a61b5dd5e7a285bb9cdc399b72d200209a84ce565f2e7740917878684e4b094254ba3fbc858765e4dc2af2a3d425dd8d343a71e180477e
|
7
|
+
data.tar.gz: 89b963d38d992791a738ff3ab91716939e39a1e8b84d056574bc6ffae504d66e6c192306ba28f5671efeec54967fa0eefca044e17121538055875a91875f4dbd
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.1.7] - 2025-01-14
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- **Git operations in isolated healing workspace** - Preserved .git directory during cloning for proper Git operations
|
12
|
+
- **Branch creation and commit operations** now work correctly in the isolated workspace
|
13
|
+
- **Workspace cleanup** properly removes .git directory to prevent conflicts
|
14
|
+
|
8
15
|
## [0.1.6] - 2025-01-14
|
9
16
|
|
10
17
|
### Added
|
@@ -161,6 +161,13 @@ module CodeHealer
|
|
161
161
|
|
162
162
|
return unless Dir.exist?(workspace_path)
|
163
163
|
|
164
|
+
# Remove .git directory first to avoid conflicts
|
165
|
+
git_dir = File.join(workspace_path, '.git')
|
166
|
+
if Dir.exist?(git_dir)
|
167
|
+
puts "๐งน [WORKSPACE] Removing .git directory to prevent conflicts..."
|
168
|
+
FileUtils.rm_rf(git_dir)
|
169
|
+
end
|
170
|
+
|
164
171
|
puts "๐งน [WORKSPACE] Removing workspace directory..."
|
165
172
|
FileUtils.rm_rf(workspace_path)
|
166
173
|
puts "๐งน [WORKSPACE] Workspace cleanup completed"
|
@@ -207,10 +214,9 @@ module CodeHealer
|
|
207
214
|
puts "๐ฟ [WORKSPACE] Clone result: #{result ? 'SUCCESS' : 'FAILED'}"
|
208
215
|
|
209
216
|
if result
|
210
|
-
puts "๐ฟ [WORKSPACE]
|
211
|
-
#
|
212
|
-
|
213
|
-
puts "๐ฟ [WORKSPACE] .git removed successfully"
|
217
|
+
puts "๐ฟ [WORKSPACE] Git repository preserved for healing operations"
|
218
|
+
# Keep .git for Git operations during healing
|
219
|
+
# We'll clean it up later in cleanup_workspace
|
214
220
|
else
|
215
221
|
puts "๐ฟ [WORKSPACE] Clone failed, checking workspace..."
|
216
222
|
puts "๐ฟ [WORKSPACE] Workspace exists: #{Dir.exist?(workspace_path)}"
|
@@ -237,6 +243,7 @@ module CodeHealer
|
|
237
243
|
checkout_result = system("git checkout #{current_branch}")
|
238
244
|
puts "๐ฟ [WORKSPACE] Checkout result: #{checkout_result ? 'SUCCESS' : 'FAILED'}"
|
239
245
|
end
|
246
|
+
puts "๐ฟ [WORKSPACE] Git repository preserved for healing operations"
|
240
247
|
else
|
241
248
|
puts "๐ฟ [WORKSPACE] Full repo clone failed"
|
242
249
|
end
|
data/lib/code_healer/version.rb
CHANGED