login
Header Space

 
 

Re: git push to a non-bare repository

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shawn O. Pearce <spearce@...>
Cc: Junio C Hamano <junkio@...>, git <git@...>
Date: Sunday, March 18, 2007 - 11:33 pm

On Sun, Mar 18, 2007 at 10:56:03PM -0400, Shawn O. Pearce wrote:

Ah, so that's controlled by receive.denyNonFastForwards, right?  Cool,
I missed that.  Thanks!!

Documentation/config.txt doesn't say it defaults to true, but from
your comments that is the default?


What git-runstatus will allow me to do is to abort if there are any
local modifications, regardless of whether or not they would conflict
with the working tree update.  The key phrase in my criteria was no
locally modified files "THAT WOULD BE AFFECTED".

What I could do with BitKeeper is that I could modify some file like
schedule.html on my webserver, and then push a changeset from my
laptop to would update sermons.html, and it would allow the push ---
since it would change the file sermons.html, and not touch
schedule.html.

But if I modified schedule.html on my laptop and then committed it,
and *then* try to push that changeset to the webserver, it would abort
since in order to accept the changeset, it would have to update the
working tree, and that would clash with the locally modified
schedule.html file.  At thta point I'd have to login to the webserver,
revert the local modification and bring it back down my laptop and
include it in a proper changeset.

Yeah, I probably shouldn't have ever modified the file locally on the
webserver, but that would sometimes happen when I was in a rush, and
it was nice when it Just Worked.

						- Ted
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git push to a non-bare repository, Matthieu Moy, (Sun Mar 18, 1:31 pm)
Re: git push to a non-bare repository, Theodore Tso, (Sun Mar 18, 10:00 pm)
Re: git push to a non-bare repository, Matthieu Moy, (Mon Mar 19, 5:19 am)
Re: git push to a non-bare repository, Junio C Hamano, (Sun Mar 18, 9:55 pm)
Re: git push to a non-bare repository, Shawn O. Pearce, (Sun Mar 18, 10:21 pm)
Re: git push to a non-bare repository, Theodore Tso, (Sun Mar 18, 10:47 pm)
Re: git push to a non-bare repository, Shawn O. Pearce, (Sun Mar 18, 10:56 pm)
Re: git push to a non-bare repository, Theodore Tso, (Sun Mar 18, 11:33 pm)
Re: git push to a non-bare repository, Shawn O. Pearce, (Sun Mar 18, 11:47 pm)
Re: git push to a non-bare repository, Junio C Hamano, (Mon Mar 19, 12:14 am)
Re: git push to a non-bare repository, Theodore Tso, (Sun Mar 18, 11:21 pm)
Re: git push to a non-bare repository, Shawn O. Pearce, (Sun Mar 18, 11:53 pm)
Re: git push to a non-bare repository, Sam Vilain, (Mon Mar 19, 7:58 pm)
Re: git push to a non-bare repository, Junio C Hamano, (Mon Mar 19, 8:49 pm)
Re: git push to a non-bare repository, Junio C Hamano, (Mon Mar 19, 8:54 pm)
Re: git push to a non-bare repository, Nicolas Pitre, (Mon Mar 19, 12:08 am)
Re: git push to a non-bare repository, Theodore Tso, (Mon Mar 19, 2:25 am)
Re: git push to a non-bare repository, Nicolas Pitre, (Mon Mar 19, 11:16 am)
Re: git push to a non-bare repository, Junio C Hamano, (Mon Mar 19, 2:44 am)
Re: git push to a non-bare repository, Nicolas Pitre, (Mon Mar 19, 11:20 am)
Re: git push to a non-bare repository, Junio C Hamano, (Sun Mar 18, 3:47 pm)
Re: git push to a non-bare repository, Sam Vilain, (Sun Mar 18, 5:51 pm)
Re: git push to a non-bare repository, Junio C Hamano, (Sun Mar 18, 6:18 pm)
speck-geostationary