Can git-clean remove junction points instead of recursively removing the contained files?
162 views
Skip to first unread message
Ian Bond
unread,
Nov 7, 2012, 2:46:00 PM11/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to msy...@googlegroups.com
Within our build process we use junction points to allow some temporary build artifacts to access checked in configuration files. The problem is that when we run git-clean it will recursively enter the junction point and delete the config files because it sees them through the junction point path which is in a ignored directory.
We ran into this same problem with our build process clean procedure and the solution there was to change our recursive delete function to detect if we were looking at a junction point and delete it (which just deletes the junction point link leaving the pointed-to directory alone) rather than recursively enter it. Is there any way to make git-clean have similar behavior? Some other way of solving this problem? We only ever use the junction points within ignored directories so I haven't found any other problematic git commands.
rafa...@gmail.com
unread,
Nov 12, 2013, 9:56:37 AM11/12/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to msy...@googlegroups.com, scre...@gmail.com
It would be nice feature, I have the same issue with "git clean" called during build process.