{"thread":{"id":"21462","subject":"Common setting for interoperability repo across windows and unix?","startedAt":"2009-11-03T15:09:50Z","lastAt":"2009-11-04T23:10:28Z","messageCount":7,"participants":["Dilip M","Avery Pennarun","Vietor Liu","Anthony W. Youngman","Shawn O. Pearce","Erik Faye-Lund"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"126651","messageId":"c94f8e120911030709h29c5b8edr53df269632990e81@mail.gmail.com","threadId":"21462","inReplyTo":null,"subject":"Common setting for interoperability repo across windows and unix?","fromName":"Dilip M","fromEmail":"dilipm79@gmail.com","sentAt":"2009-11-03T15:09:50Z","receivedAt":"2009-11-03T15:09:50Z","isPatch":false,"sender":{"key":"dilipm79@gmail.com","avatar":"https://gravatar.com/avatar/9417e308513ce9251de2802a026c72eb164e6c9b9d7143a3ee13f6ed0c4d1bd5?d=mp&s=160"},"body":"Hello,\n\nI have repo in unix. The same repo is cloned onto windows.I have set\n\"core.autocrlf=input\" in both the repos.\n\nWhen I do some change to a file in windows and push to unix repo, I\nget file deleted If I do \"git status\"?\n\nWhat is the setting to be done if I want an repo to be\naccess/push/pulled across windows and unix?\n\n\n\n-- \nDilip\n"},{"id":"126652","messageId":"32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com","threadId":"21462","inReplyTo":"c94f8e120911030709h29c5b8edr53df269632990e81@mail.gmail.com","subject":"Re: Common setting for interoperability repo across windows and unix?","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2009-11-03T15:33:25Z","receivedAt":"2009-11-03T15:33:25Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Tue, Nov 3, 2009 at 11:09 AM, Dilip M <dilipm79@gmail.com> wrote:\n> I have repo in unix. The same repo is cloned onto windows.I have set\n> \"core.autocrlf=input\" in both the repos.\n>\n> When I do some change to a file in windows and push to unix repo, I\n> get file deleted If I do \"git status\"?\n>\n> What is the setting to be done if I want an repo to be\n> access/push/pulled across windows and unix?\n\nIt sounds like you are pushing to the currently-checked-out branch of\na non-bare repo.\n\nIf this is true, you should do one of the following:\n\n- have a central \"bare\" repo (created with git init --bare) and\npush/pull from that rather than directly\n\n- pull, rather than push, when transferring data between repos.\n\nYou can pull from a Windows box by running git-daemon on that box from\nthe command line.  (It's easier than it sounds.)\n\nHave fun,\n\nAvery\n"},{"id":"126692","messageId":"1257295578.2212.4.camel@localhost.localdomain","threadId":"21462","inReplyTo":"c94f8e120911030709h29c5b8edr53df269632990e81@mail.gmail.com","subject":"Re: Common setting for interoperability repo across windows and unix?","fromName":"Vietor Liu","fromEmail":"vietor@vxwo.org","sentAt":"2009-11-04T00:46:18Z","receivedAt":"2009-11-04T00:46:18Z","isPatch":false,"sender":{"key":"vietor@vxwo.org","avatar":"https://gravatar.com/avatar/5aec20a4fda090db11446ebfef48ef01e702e5cef0710640a676ccbfce1f4fe3?d=mp&s=160"},"body":"On Tue, 2009-11-03 at 20:39 +0530, Dilip M wrote:\n> Hello,\n> \n> I have repo in unix. The same repo is cloned onto windows.I have set\n> \"core.autocrlf=input\" in both the repos.\n> \n> When I do some change to a file in windows and push to unix repo, I\n> get file deleted If I do \"git status\"?\n> \n> What is the setting to be done if I want an repo to be\n> access/push/pulled across windows and unix?\n> \n> \n> \n\nmsysgit, test:\n\n core.autocrlf=false\n"},{"id":"126842","messageId":"S0ax5AE0Xf8KFwjv@thewolery.demon.co.uk","threadId":"21462","inReplyTo":"32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com","subject":"Re: Common setting for interoperability repo across windows and unix?","fromName":"Anthony W. Youngman","fromEmail":"wol@thewolery.demon.co.uk","sentAt":"2009-11-04T21:45:24Z","receivedAt":"2009-11-04T21:45:24Z","isPatch":false,"sender":{"key":"wol@thewolery.demon.co.uk","avatar":null},"body":"In message \n<32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com>, Avery \nPennarun <apenwarr@gmail.com> writes\n>You can pull from a Windows box by running git-daemon on that box from\n>the command line.  (It's easier than it sounds.)\n\nThat presumes you're running Cygwin ...\n\ngit-daemon doesn't (currently) work on msysgit. Currently I run \ngit-daemon on my linpus netbook and pull/push from windows.\n\nCheers,\nWol\n-- \nAnthony W. Youngman - anthony@thewolery.demon.co.uk\n"},{"id":"126845","messageId":"32541b130911041459y7a2201a3r18601522187891f2@mail.gmail.com","threadId":"21462","inReplyTo":"S0ax5AE0Xf8KFwjv@thewolery.demon.co.uk","subject":"Re: Common setting for interoperability repo across windows and unix?","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2009-11-04T22:59:21Z","receivedAt":"2009-11-04T22:59:21Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Wed, Nov 4, 2009 at 4:45 PM, Anthony W. Youngman\n<wol@thewolery.demon.co.uk> wrote:\n> In message <32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com>,\n> Avery Pennarun <apenwarr@gmail.com> writes\n>> You can pull from a Windows box by running git-daemon on that box from\n>> the command line.  (It's easier than it sounds.)\n>\n> That presumes you're running Cygwin ...\n>\n> git-daemon doesn't (currently) work on msysgit. Currently I run git-daemon\n> on my linpus netbook and pull/push from windows.\n\nI didn't know that.  Windows sockets are mercifully very nearly\ncompatible with Linux ones, so hopefully this wouldn't be too hard to\nfix for someone that needs it.  (Not me; I prefer cygwin over msys in\nall cases.)\n\nAvery\n"},{"id":"126846","messageId":"20091104230122.GK10505@spearce.org","threadId":"21462","inReplyTo":"32541b130911041459y7a2201a3r18601522187891f2@mail.gmail.com","subject":"Re: Common setting for interoperability repo across windows and unix?","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-11-04T23:01:22Z","receivedAt":"2009-11-04T23:01:22Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Avery Pennarun <apenwarr@gmail.com> wrote:\n> >\n> > git-daemon doesn't (currently) work on msysgit. Currently I run git-daemon\n> > on my linpus netbook and pull/push from windows.\n> \n> I didn't know that.  Windows sockets are mercifully very nearly\n> compatible with Linux ones, so hopefully this wouldn't be too hard to\n> fix for someone that needs it.  (Not me; I prefer cygwin over msys in\n> all cases.)\n\ngit-daemon relies on fork, do work, then later exec.  Windows lacks\nthis concept.  Making it hard to port.\n\n-- \nShawn.\n"},{"id":"126847","messageId":"40aa078e0911041510p645c37c3i238fbf0eb568aba0@mail.gmail.com","threadId":"21462","inReplyTo":"20091104230122.GK10505@spearce.org","subject":"Re: Common setting for interoperability repo across windows and unix?","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@googlemail.com","sentAt":"2009-11-04T23:10:28Z","receivedAt":"2009-11-04T23:10:28Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Thu, Nov 5, 2009 at 12:01 AM, Shawn O. Pearce <spearce@spearce.org> wrote:\n> Avery Pennarun <apenwarr@gmail.com> wrote:\n>> >\n>> > git-daemon doesn't (currently) work on msysgit. Currently I run git-daemon\n>> > on my linpus netbook and pull/push from windows.\n>>\n>> I didn't know that.  Windows sockets are mercifully very nearly\n>> compatible with Linux ones, so hopefully this wouldn't be too hard to\n>> fix for someone that needs it.  (Not me; I prefer cygwin over msys in\n>> all cases.)\n>\n> git-daemon relies on fork, do work, then later exec.  Windows lacks\n> this concept.  Making it hard to port.\n\nBefore anyone starts hacking: I've got a working git-daemon on\nWindows, based on some old patches from Mike Pape, plus some extending\nof the start_async-api. It's still not ready for submission, but I\nthink I've got the last important technical details nailed down now,\nall that is needed is a fair share of clean-up. Hopefully I'll have it\nready for submission during the week-end some time.\n\n-- \nErik \"kusma\" Faye-Lund\n"}]}