Detect repo