This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new a378ee7c Update File.separator usage in GitService.java (#1538)
a378ee7c is described below

commit a378ee7c6b45b6f41feaeb253fac95fcd40dba92
Author: MarcelRosenberger <[email protected]>
AuthorDate: Sat Jul 5 14:49:20 2025 +0200

    Update File.separator usage in GitService.java (#1538)
    
    * Update File.separator usage in GitService.java
    
    * Update GitService.java
    
    * Update GitService.java
---
 .../src/main/java/org/apache/camel/karavan/service/GitService.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/karavan-app/src/main/java/org/apache/camel/karavan/service/GitService.java 
b/karavan-app/src/main/java/org/apache/camel/karavan/service/GitService.java
index cba60873..08002684 100644
--- a/karavan-app/src/main/java/org/apache/camel/karavan/service/GitService.java
+++ b/karavan-app/src/main/java/org/apache/camel/karavan/service/GitService.java
@@ -278,7 +278,7 @@ public class GitService {
             if (files.stream().filter(pf -> Objects.equals(pf.getName(), 
filename)).count() == 0) {
                 try {
                     LOGGER.info("Add deleted file " + filename);
-                    git.rm().addFilepattern(project.getProjectId() + 
File.separator + filename).call();
+                    git.rm().addFilepattern(project.getProjectId() + "/" + 
filename).call();
                 } catch (GitAPIException e) {
                     throw new RuntimeException(e);
                 }

Reply via email to