> + if ! git clone --depth 1 --mirror "$url" "$dir"; then This will completely break any pkgver() function using git describe to build the version information. I toyed with this idea once before and during my testing found it to break everything relating to this.