update as bare repository