Re: [PATCH v4] for-each-ref: Always check stat_tracking_info()'s return value.

2015-01-06 Thread Junio C Hamano
Raphael Kubo da Costa raphael.kubo.da.co...@intel.com writes: The code handling %(upstream:track) and %(upstream:trackshort) assumed it always had a valid branch that had been sanitized earlier in populate_value(), and thus did not check the return value of the call to stat_tracking_info().

[PATCH v4] for-each-ref: Always check stat_tracking_info()'s return value.

2015-01-05 Thread Raphael Kubo da Costa
The code handling %(upstream:track) and %(upstream:trackshort) assumed it always had a valid branch that had been sanitized earlier in populate_value(), and thus did not check the return value of the call to stat_tracking_info(). While there is indeed some sanitization code that basically