avoid duplicate repo writes