middleman-deploy icon indicating copy to clipboard operation
middleman-deploy copied to clipboard

fixes #72, #91 — getting git remote url

Open alexanderadam opened this issue 5 years ago • 0 comments

Hi @karlfreeman,

I know that this likely won't be merged (I saw the list of open PRs) but maybe it will help someone else.

The problem with issues #72 and #91 was, that the subrepository in the build directory can only be initialized the first time because there's no other git repository in the build folder yet. Afterwards get_remote_url will only get the data from git repository of the build folder, which might have a totally different origin name or url. Thus the chdir('..') to get to the main repository again.

The dependencies really should be updated, too (but somebody else already took care on on this).

alexanderadam avatar Oct 07 '20 19:10 alexanderadam