Re: [PATCH] fetch: refuse to fetch into the current branch in a non-bare repository

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shawn O. Pearce
Date: Sunday, October 12, 2008 - 11:52 am

Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

I'd rather see local variables named lowercase.  Constants should
be the only thing that is all uppercase.


This should only be called if update_head_ok is false.  So maybe:

	if (!update_head_ok)
		check_ref_map(ref_map)
  

Repeat this test, but with --update-head-ok and expect success,
since the check_ref_map logic is conditional on that?

-- 
Shawn.
--
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:
[PATCH] fetch: refuse to fetch into the current branch in ..., Johannes Schindelin, (Sat Oct 11, 4:38 am)
Re: [PATCH] fetch: refuse to fetch into the current branch ..., Shawn O. Pearce, (Sun Oct 12, 11:52 am)
Re: [PATCH] fetch: refuse to fetch into the current branch ..., Johannes Schindelin, (Mon Oct 13, 2:28 am)
[PATCH v2] Fix fetch/pull when run without --update-head-ok, Johannes Schindelin, (Mon Oct 13, 2:36 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Mon Oct 13, 10:57 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Mon Oct 13, 11:12 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Tue Oct 14, 2:49 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Tue Oct 14, 9:15 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Tue Oct 14, 9:17 am)