SmartGit 7 preview bug : delete all files from a directory

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SmartGit 7 preview bug : delete all files from a directory

SmartGit mailing list
Hi,
 

 I have found a problem in the preview builds of SmartGit 7. Removing all files in a directory from git is not well managed by the SmartGit application. Once all files are removed physically from the disk and added to index, the files will disappear from the application entirelly. Once we are in this situation we are not able to commit those changes, unstage them or discard the modifications (to bring back the files).
 

 When removing some files but not all files, this situation is not happening. We need to remove all files from the directory to reproduce this problem. This bug is not occuring in SmartGit 6.5.6.
 

 Here is a small list of commands to easily reproduce the problem (Create a repository, commit files in some directory and remove them). Once the operations are done, only add the repository in SmartGit to see how it behaves.
 

 git init
 mkdir Test1
 mkdir Test2
 echo File1 > Test1\File1.txt
 echo File2 > Test1\File2.txt
 echo File3 > Test2\File3.txt
 echo File4 > Test2\File4.txt
 git add Test1\File1.txt
 git add Test1\File2.txt
 git add Test2\File3.txt
 git add Test2\File4.txt
 

 git commit -a -m "Initial Commit"
 

 ECHO Remove all files from Test1 folder
 del Test1\File1.txt
 del Test1\File2.txt
 

 ECHO Remove all files from Test2 folder
 del Test2\File3.txt
 

 ECHO Remove those files from git
 git rm Test1\File1.txt
 git rm Test1\File2.txt
 git rm Test2\File3.txt
 

 ECHO See the problem in SmartGit
 

 This is an annoying problem when removing files from directories and not figuring out that there was some files that were not included in a commit because they were not listed by SmartGit as part as a modification for the commit.
 

 Thank you.
 

 
Reply | Threaded
Open this post in threaded view
|

Re: SmartGit 7 preview bug : delete all files from a directory

SmartGit mailing list
> I have found a problem in the preview builds of SmartGit 7. Removing all files in
> a directory from git is not well managed by the SmartGit application. Once all
> files are removed physically from the disk and added to index, the files will
> disappear from the application entirelly. Once we are in this situation we are not
> able to commit those changes, unstage them or discard the modifications (to bring
> back the files).

Thanks for reporting this problem. This regression is fixed now in the latest build (5028). Would you please confirm? Help|Check for Latest Build

--
Best regards,
Marc Strapetz
syntevo GmbH
http://www.syntevo.com


03/26/2015 07:00 - [hidden email] [smartgit] wrote:

> Hi,
>  
>
>  I have found a problem in the preview builds of SmartGit 7. Removing all files in
> a directory from git is not well managed by the SmartGit application. Once all
> files are removed physically from the disk and added to index, the files will
> disappear from the application entirelly. Once we are in this situation we are not
> able to commit those changes, unstage them or discard the modifications (to bring
> back the files).
>  
>
>  When removing some files but not all files, this situation is not happening. We
> need to remove all files from the directory to reproduce this problem. This bug is
> not occuring in SmartGit 6.5.6.
>  
>
>  Here is a small list of commands to easily reproduce the problem (Create a
> repository, commit files in some directory and remove them). Once the operations
> are done, only add the repository in SmartGit to see how it behaves.
>  
>
>  git init
>  mkdir Test1
>  mkdir Test2
>  echo File1 > Test1\File1.txt
>  echo File2 > Test1\File2.txt
>  echo File3 > Test2\File3.txt
>  echo File4 > Test2\File4.txt
>  git add Test1\File1.txt
>  git add Test1\File2.txt
>  git add Test2\File3.txt
>  git add Test2\File4.txt
>  
>
>  git commit -a -m "Initial Commit"
>  
>
>  ECHO Remove all files from Test1 folder
>  del Test1\File1.txt
>  del Test1\File2.txt
>  
>
>  ECHO Remove all files from Test2 folder
>  del Test2\File3.txt
>  
>
>  ECHO Remove those files from git
>  git rm Test1\File1.txt
>  git rm Test1\File2.txt
>  git rm Test2\File3.txt
>  
>
>  ECHO See the problem in SmartGit
>  
>
>  This is an annoying problem when removing files from directories and not figuring
> out that there was some files that were not included in a commit because they were
> not listed by SmartGit as part as a modification for the commit.
>  
>
>  Thank you.
>  
>
>  
>
Reply | Threaded
Open this post in threaded view
|

Re: SmartGit 7 preview bug : delete all files from a directory

SmartGit mailing list
So far it is working as expected.

 Thank you for your support!
 

 S├ębastien