Re: Pushing into a repository with working directory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, 9 Jan 2007, Andreas Ericsson wrote:

> Shawn O. Pearce wrote:
> > 
> > Pushing into the current branch of a repository with a working 
> > directory probably shouldn't be allowed by default as users probably 
> > don't want to do that.
> 
> 
> I do this all the time. I develop on my laptop and send changes to a 
> testserver where I check out the revision I just pushed to the working 
> directory attached to it.

This is still possible. I also do it all the time. Only I do not update 
the _current_ branch, but a throwaway one.

> Since we can determine if there's a working directory or not, why not 
> just allow the fast-forward case if the working directory is clean and 
> update the working directory for the user?

Because maybe that user could be working on them right now?

The behaviour is safe as is.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]