git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Common setting for interoperability repo across windows and unix?
@ 2009-11-03 15:09 Dilip M
  2009-11-03 15:33 ` Avery Pennarun
  2009-11-04  0:46 ` Vietor Liu
  0 siblings, 2 replies; 7+ messages in thread
From: Dilip M @ 2009-11-03 15:09 UTC (permalink / raw)
  To: git

Hello,

I have repo in unix. The same repo is cloned onto windows.I have set
"core.autocrlf=input" in both the repos.

When I do some change to a file in windows and push to unix repo, I
get file deleted If I do "git status"?

What is the setting to be done if I want an repo to be
access/push/pulled across windows and unix?



-- 
Dilip

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Common setting for interoperability repo across windows and unix?
  2009-11-03 15:09 Common setting for interoperability repo across windows and unix? Dilip M
@ 2009-11-03 15:33 ` Avery Pennarun
  2009-11-04 21:45   ` Anthony W. Youngman
  2009-11-04  0:46 ` Vietor Liu
  1 sibling, 1 reply; 7+ messages in thread
From: Avery Pennarun @ 2009-11-03 15:33 UTC (permalink / raw)
  To: Dilip M; +Cc: git

On Tue, Nov 3, 2009 at 11:09 AM, Dilip M <dilipm79@gmail.com> wrote:
> I have repo in unix. The same repo is cloned onto windows.I have set
> "core.autocrlf=input" in both the repos.
>
> When I do some change to a file in windows and push to unix repo, I
> get file deleted If I do "git status"?
>
> What is the setting to be done if I want an repo to be
> access/push/pulled across windows and unix?

It sounds like you are pushing to the currently-checked-out branch of
a non-bare repo.

If this is true, you should do one of the following:

- have a central "bare" repo (created with git init --bare) and
push/pull from that rather than directly

- pull, rather than push, when transferring data between repos.

You can pull from a Windows box by running git-daemon on that box from
the command line.  (It's easier than it sounds.)

Have fun,

Avery

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Common setting for interoperability repo across windows and unix?
  2009-11-03 15:09 Common setting for interoperability repo across windows and unix? Dilip M
  2009-11-03 15:33 ` Avery Pennarun
@ 2009-11-04  0:46 ` Vietor Liu
  1 sibling, 0 replies; 7+ messages in thread
From: Vietor Liu @ 2009-11-04  0:46 UTC (permalink / raw)
  To: Dilip M; +Cc: git

On Tue, 2009-11-03 at 20:39 +0530, Dilip M wrote:
> Hello,
> 
> I have repo in unix. The same repo is cloned onto windows.I have set
> "core.autocrlf=input" in both the repos.
> 
> When I do some change to a file in windows and push to unix repo, I
> get file deleted If I do "git status"?
> 
> What is the setting to be done if I want an repo to be
> access/push/pulled across windows and unix?
> 
> 
> 

msysgit, test:

 core.autocrlf=false

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Common setting for interoperability repo across windows and unix?
  2009-11-03 15:33 ` Avery Pennarun
@ 2009-11-04 21:45   ` Anthony W. Youngman
  2009-11-04 22:59     ` Avery Pennarun
  0 siblings, 1 reply; 7+ messages in thread
From: Anthony W. Youngman @ 2009-11-04 21:45 UTC (permalink / raw)
  To: git

In message 
<32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com>, Avery 
Pennarun <apenwarr@gmail.com> writes
>You can pull from a Windows box by running git-daemon on that box from
>the command line.  (It's easier than it sounds.)

That presumes you're running Cygwin ...

git-daemon doesn't (currently) work on msysgit. Currently I run 
git-daemon on my linpus netbook and pull/push from windows.

Cheers,
Wol
-- 
Anthony W. Youngman - anthony@thewolery.demon.co.uk

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Common setting for interoperability repo across windows and unix?
  2009-11-04 21:45   ` Anthony W. Youngman
@ 2009-11-04 22:59     ` Avery Pennarun
  2009-11-04 23:01       ` Shawn O. Pearce
  0 siblings, 1 reply; 7+ messages in thread
From: Avery Pennarun @ 2009-11-04 22:59 UTC (permalink / raw)
  To: Anthony W. Youngman; +Cc: git

On Wed, Nov 4, 2009 at 4:45 PM, Anthony W. Youngman
<wol@thewolery.demon.co.uk> wrote:
> In message <32541b130911030733i734b9f6doc366934873bf7713@mail.gmail.com>,
> Avery Pennarun <apenwarr@gmail.com> writes
>> You can pull from a Windows box by running git-daemon on that box from
>> the command line.  (It's easier than it sounds.)
>
> That presumes you're running Cygwin ...
>
> git-daemon doesn't (currently) work on msysgit. Currently I run git-daemon
> on my linpus netbook and pull/push from windows.

I didn't know that.  Windows sockets are mercifully very nearly
compatible with Linux ones, so hopefully this wouldn't be too hard to
fix for someone that needs it.  (Not me; I prefer cygwin over msys in
all cases.)

Avery

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Common setting for interoperability repo across windows and unix?
  2009-11-04 22:59     ` Avery Pennarun
@ 2009-11-04 23:01       ` Shawn O. Pearce
  2009-11-04 23:10         ` Erik Faye-Lund
  0 siblings, 1 reply; 7+ messages in thread
From: Shawn O. Pearce @ 2009-11-04 23:01 UTC (permalink / raw)
  To: Avery Pennarun; +Cc: Anthony W. Youngman, git

Avery Pennarun <apenwarr@gmail.com> wrote:
> >
> > git-daemon doesn't (currently) work on msysgit. Currently I run git-daemon
> > on my linpus netbook and pull/push from windows.
> 
> I didn't know that.  Windows sockets are mercifully very nearly
> compatible with Linux ones, so hopefully this wouldn't be too hard to
> fix for someone that needs it.  (Not me; I prefer cygwin over msys in
> all cases.)

git-daemon relies on fork, do work, then later exec.  Windows lacks
this concept.  Making it hard to port.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Common setting for interoperability repo across windows and unix?
  2009-11-04 23:01       ` Shawn O. Pearce
@ 2009-11-04 23:10         ` Erik Faye-Lund
  0 siblings, 0 replies; 7+ messages in thread
From: Erik Faye-Lund @ 2009-11-04 23:10 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Avery Pennarun, Anthony W. Youngman, git

On Thu, Nov 5, 2009 at 12:01 AM, Shawn O. Pearce <spearce@spearce.org> wrote:
> Avery Pennarun <apenwarr@gmail.com> wrote:
>> >
>> > git-daemon doesn't (currently) work on msysgit. Currently I run git-daemon
>> > on my linpus netbook and pull/push from windows.
>>
>> I didn't know that.  Windows sockets are mercifully very nearly
>> compatible with Linux ones, so hopefully this wouldn't be too hard to
>> fix for someone that needs it.  (Not me; I prefer cygwin over msys in
>> all cases.)
>
> git-daemon relies on fork, do work, then later exec.  Windows lacks
> this concept.  Making it hard to port.

Before anyone starts hacking: I've got a working git-daemon on
Windows, based on some old patches from Mike Pape, plus some extending
of the start_async-api. It's still not ready for submission, but I
think I've got the last important technical details nailed down now,
all that is needed is a fair share of clean-up. Hopefully I'll have it
ready for submission during the week-end some time.

-- 
Erik "kusma" Faye-Lund

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-11-04 23:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03 15:09 Common setting for interoperability repo across windows and unix? Dilip M
2009-11-03 15:33 ` Avery Pennarun
2009-11-04 21:45   ` Anthony W. Youngman
2009-11-04 22:59     ` Avery Pennarun
2009-11-04 23:01       ` Shawn O. Pearce
2009-11-04 23:10         ` Erik Faye-Lund
2009-11-04  0:46 ` Vietor Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).