gitreceived: Refactor attach/exit handling
gitreceived: Refactor attach/exit handling

Signed-off-by: Jonathan Rudenberg <3692bfa45759a67d83aedf0045f6cb635a966abf@titanous.com>

GrimDerp/flynn,whouses/flynn,pkdevbox/flynn,clifff/flynn,kgrz/flynn,tonicbupt/flynn,pkdevbox/flynn,kgrz/flynn,kgrz/flynn,clifff/flynn,supermario/flynn,flynn/flynn,justintung/flynn,philiplb/flynn,TribeMedia/flynn,justintung/flynn,benbjohnson/flynn,jzila/flynn,jzila/flynn,felixrieseberg/flynn,clifff/flynn,whouses/flynn,felixrieseberg/flynn,jzila/flynn,Brandywine2161/flynn,flynn/flynn,mubassirhayat/flynn,arekkas/flynn,josephglanville/flynn,arekkas/flynn,josephglanville/flynn,Brandywine2161/flynn,lmars/flynn,pkdevbox/flynn,rikur/flynn,tonicbupt/flynn,philiplb/flynn,benbjohnson/flynn,mubassirhayat/flynn,schatt/flynn,TribeMedia/flynn,Brandywine2161/flynn,tonicbupt/flynn,arekkas/flynn,rikur/flynn,tonicbupt/flynn,mubassirhayat/flynn,GrimDerp/flynn,shutej/flynn,jzila/flynn,lmars/flynn,felixrieseberg/flynn,whouses/flynn,philiplb/flynn,lmars/flynn,lmars/flynn,rikur/flynn,pkdevbox/flynn,benbjohnson/flynn,lmars/flynn,TribeMedia/flynn,felixrieseberg/flynn,kgrz/flynn,josephglanville/flynn,GrimDerp/flynn,kgrz/flynn,arekkas/flynn,pkdevbox/flynn,flynn/flynn,schatt/flynn,jzila/flynn,shads196770/flynn,philiplb/flynn,whouses/flynn,kgrz/flynn,ozum/flynn,josephglanville/flynn,Brandywine2161/flynn,josephglanville/flynn,GrimDerp/flynn,arekkas/flynn,mubassirhayat/flynn,ozum/flynn,TribeMedia/flynn,ozum/flynn,clifff/flynn,schatt/flynn,rikur/flynn,schatt/flynn,supermario/flynn,flynn/flynn,supermario/flynn,shads196770/flynn,justintung/flynn,rikur/flynn,ozum/flynn,schatt/flynn,clifff/flynn,TribeMedia/flynn,whouses/flynn,shads196770/flynn,supermario/flynn,josephglanville/flynn,justintung/flynn,shads196770/flynn,shads196770/flynn,technosophos/flynn,technosophos/flynn,benbjohnson/flynn,philiplb/flynn,whouses/flynn,TribeMedia/flynn,ozum/flynn,tonicbupt/flynn,supermario/flynn,justintung/flynn,shads196770/flynn,clifff/flynn,rikur/flynn,schatt/flynn,GrimDerp/flynn,pkdevbox/flynn,justintung/flynn,supermario/flynn,felixrieseberg/flynn,technosophos/flynn,flynn/flynn,Brandywine2161/flynn,GrimDerp/flynn,benbjohnson/flynn,technosophos/flynn,Brandywine2161/flynn,jzila/flynn,benbjohnson/flynn,technosophos/flynn,ozum/flynn