hello,
I have the following problem with Git when I change a branch :
suppose I am in a branch that has added files in new directories. Now, I switch to another branch that is identical except it does not have those new files and directories. After switching, the new files have disappeared from those directoriees, but not the directories themselves, they are still there though empty.
When those directories are plugin-profile directories, this causes a start-up failure after switching branch, because the schema plugin implementation chokes if a directory in the schema plugin directories location does not contain a schema-ident.xml file.
So I suppose schema plugins should be made more tolerant and just ignore directories without that file; but the other problem is of course Git behaviour.
Did anyone confirm this ? Is there a workaround ?
Kind regards
Heikki Doeleman
Git doesn’t pay attention to directories, just files, so it won’t delete the directories when changing branches. I think you can probably overcome this by doing a git clean -fd to get rid of directories as well.
Although it makes sense for me that the plugins should check that the directories are not empty before considering them.
Jesse
On Wed, Oct 31, 2012 at 2:09 PM, heikki <tropicano@anonymised.com> wrote:
hello,
I have the following problem with Git when I change a branch :
suppose I am in a branch that has added files in new directories. Now, I switch to another branch that is identical except it does not have those new files and directories. After switching, the new files have disappeared from those directoriees, but not the directories themselves, they are still there though empty.
When those directories are plugin-profile directories, this causes a start-up failure after switching branch, because the schema plugin implementation chokes if a directory in the schema plugin directories location does not contain a schema-ident.xml file.
So I suppose schema plugins should be made more tolerant and just ignore directories without that file; but the other problem is of course Git behaviour.
Did anyone confirm this ? Is there a workaround ?
Kind regards
Heikki Doeleman
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
OK, tnx.
In my opinion it is strange for Git not to take directories into account when changing branches, but OK, at least now we know that.
I opened a ticket for schema plugins to not cause start-up failure.
Kind regards
Heikki Doleman
On Wed, Oct 31, 2012 at 3:53 PM, Jesse Eichar <jesse.eichar@anonymised.com> wrote:
Git doesn’t pay attention to directories, just files, so it won’t delete the directories when changing branches. I think you can probably overcome this by doing a git clean -fd to get rid of directories as well.
Although it makes sense for me that the plugins should check that the directories are not empty before considering them.
Jesse
On Wed, Oct 31, 2012 at 2:09 PM, heikki <tropicano@anonymised.com> wrote:
hello,
I have the following problem with Git when I change a branch :
suppose I am in a branch that has added files in new directories. Now, I switch to another branch that is identical except it does not have those new files and directories. After switching, the new files have disappeared from those directoriees, but not the directories themselves, they are still there though empty.
When those directories are plugin-profile directories, this causes a start-up failure after switching branch, because the schema plugin implementation chokes if a directory in the schema plugin directories location does not contain a schema-ident.xml file.
So I suppose schema plugins should be made more tolerant and just ignore directories without that file; but the other problem is of course Git behaviour.
Did anyone confirm this ? Is there a workaround ?
Kind regards
Heikki Doeleman
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork