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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1ceaaefb9e7954b186c14720e3a68876975deed3d720e812420933dd6016484
4
- data.tar.gz: 5299cd3f4a2e394700692d65e74d8132e1bd77b779220cda6b40c0e9db6d2f76
3
+ metadata.gz: fb4a7ded404d0efca6e6e111b0186cc2bdeaef8a6eaf4041fd9799fcc447d044
4
+ data.tar.gz: 95f4317a52fa36bc1aae2923d497a01c282486de0680548a5e80ff1f15ff6468
5
5
  SHA512:
6
- metadata.gz: a84ffb72f678182aceaf0e39e206e55e9684811c1e2edbccf6bc5368a1a6330123f9215bb5fa81dd47b63042b94a01e93accaa700a958058ad155673b518b68e
7
- data.tar.gz: 1a07538709f991f556c5fe407e8212aeb21f161f107494d4a07323b6db10389b1471ddc9b61834097b8a41161c6e287ec335dd739227562a56842d67b25f7097
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] Removing .git to avoid conflicts..."
211
- # Remove .git to avoid conflicts
212
- FileUtils.rm_rf(File.join(workspace_path, '.git'))
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CodeHealer
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_healer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deepan Kumar