Re: [git-users] Git errors for a repo on site network drive
Yes, I guess it is CIFS that I'm using, because I'm on Windows 7. So I tried doing that, I changed the config file in my .git directory, and added the line "fsyncobjectfiles = true" under [core]. But still I'm getting the same errors. On Friday, January 15, 2016 at 3:11:12 PM UTC-8, Martin Møller Skarbiniks Pedersen wrote: > > On 15 January 2016 at 21:12, Saz > > wrote: > > > > I've created a network drive for my locally hosted website, and I'm > managing all my files directly on the network drive. And I'm using that > network drive as a local git repo. So, if I make any changes to a file > there, I'd also want to be able to push it my my remote git repo. But when > I start to do that, its gives me so many errors. Sometimes, it fails to > check the status, sometimes gives errors such as > > > > I guess you are using CIFS and not NFS. > > Try setting this in your config-file > > [core] > fsyncobjectfiles = true > > > Regards > Martin M. S. Pedersen > -- 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 git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [git-users] Git errors for a repo on site network drive
On 15 January 2016 at 21:12, Saz wrote: > > I've created a network drive for my locally hosted website, and I'm managing all my files directly on the network drive. And I'm using that network drive as a local git repo. So, if I make any changes to a file there, I'd also want to be able to push it my my remote git repo. But when I start to do that, its gives me so many errors. Sometimes, it fails to check the status, sometimes gives errors such as > I guess you are using CIFS and not NFS. Try setting this in your config-file [core] fsyncobjectfiles = true Regards Martin M. S. Pedersen -- 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 git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[git-users] Git errors for a repo on site network drive
I've created a network drive for my locally hosted website, and I'm managing all my files directly on the network drive. And I'm using that network drive as a local git repo. So, if I make any changes to a file there, I'd also want to be able to push it my my remote git repo. But when I start to do that, its gives me so many errors. Sometimes, it fails to check the status, sometimes gives errors such as 1. "fatal: index file smaller than expected" 2. "fatal: Unable to create 'Y:/demo.dotcms.com/demos/tstgit/.git/index.lock': File exists." 3. "error: update_ref failed for ref 'HEAD': cannot lock ref 'HEAD': Unable to create 'Y:/demo.dotcms.com/demos/tstgit/.git/refs/heads/master.lock': File exists." 4. "error: update_ref failed for ref 'refs/remotes/origin/master': cannot lock ref 'refs/remotes/origin/master': Unable to create Y:/demo.dotcms.com/demos/tstgit/.git/refs/remotes/origin/master.lock': File exists." I've googled and followed every direction I could in: 1. http://codybonney.com/fixing-fatal-index-file-smaller-than-expected-error/ 2. http://programertools.blogspot.com/2014/04/how-to-fix-fatal-index-file-smaller.html 3. http://vertis.io/2012/01/24/git-fatal-index-file-smaller-than-expected.html 4. https://jira.atlassian.com/browse/SRCTREE-2018 But I'm still getting these issues. However, when I try to check status, stage, commit, push, everything seems to work fine when I do it from my local drive. But I get these errors only when working from network drive. Please help. -- 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 git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.