I have a dependency hosted in a private git repository, and am using satis for package management. I've tagged a commit to the master branch of the repo as "1.0.0", and in the composer.json file, where I wish to use that package, I've specified
"require": {
"package/name": "~1.0"
},
"repositories": [
{
"type": "composer",
"url": "http://myownsatisrepo"
},
"config": {
"preferred-install": "dist"
}
and am running the command composer install --prefer-dist
So the fact that I've specified a stable package version should ensure that composer won't just clone the repo (including a .git folder, which I don't want), but instead downloads a package. The extra config flag and parameter to the install command should do the same. Still, composer only clones the package though.