]> source.dussan.org Git - jgit.git/commit
Reject non-fast-forwards earlier in BaseReceivePack 84/6084/1
authorShawn O. Pearce <spearce@spearce.org>
Tue, 22 May 2012 22:59:53 +0000 (15:59 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 22 May 2012 23:28:34 +0000 (16:28 -0700)
commit04fa307a70f8bc4f47a95fb18f74b0c9763d059b
treeb133a1f6f01318eca7dcf21c886d8ae3a5e7ef20
parent3da4c6fc58b666d31eafaaec3f1337fc665cd14f
Reject non-fast-forwards earlier in BaseReceivePack

If BaseReceivePack has setAllowNonFastForwards(false) configured
(such as by receive.denynonfastforwards), automatically reject
any command that attempts a non-fast-forward update before it goes
further in processing.

This matches with other checks in validateCommands(), such as the
early failure of delete attempts when isAllowDeletes() is false.

Change-Id: I3bb28e4dd6d17cb31ede09eb84ceb67cdb17ea5d
org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java