The occupation of Galicia and the complete defeat of the Austrian army