After several days I have found the reason why we cannot use git version control on exist db mapped drive. Any ideas?
Thx A *Symptom:* error: short read while indexing … *Environment* - Windows (most probably does not matter) - p: drive is a mapped eXist XML DB WebDAV drive, p:\apps\test contains a single file “index.html” http://exist-db.org/exist/apps/homepage/index.html => download, install, admin/admin username password net use p: http://localhost:8080/exist/webdav/db/ /user:admin admin mkdir p:\apps\test echo “my file” > p:\apps\test\index.html - c:\temp\test empty folder - git version 2.16.0.windows.2 *Commands* P: Cd \apps\test git init git init --separate-git-dir C:\temp\test è repository made under c:\temp\test git init add ./index.html è error: short read while indexing index.html error: index.html: failed to insert into database error: unable to index file index.html fatal: adding files failed *Possible reason* exist uses Milton. exist WebDAV improperly reports size of file as found in http://exist-db.org/exist/apps/doc/repo/webdav.xml “The size of an XML document is presented as a multiple of 4096 bytes, which is eXist's internal pagesize (see conf.xml <http://exist-db.org/exist/apps/doc/repo/configuration.xml#conf.xml>). The actual size on an XML document stored in the database can not be determined because the size depends on many factors, e.g. the applied serialization parameters.” As such, git will not get exact file size. When trying to read the entire file, it cannot since the file is smaller. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
