Skip to content

Commit

Permalink
(maint) Fixes a bug when a custom template-url is provided to convert…
Browse files Browse the repository at this point in the history
… and default ref is a tag
  • Loading branch information
bmjen committed Feb 22, 2018
1 parent ddd7ed1 commit 634bc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdk/module/templatedir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def initialize(path_or_url, module_metadata = {}, init = false)
# template repo in `%AppData%` or `$XDG_CACHE_DIR` and update before
# use.
temp_dir = PDK::Util.make_tmpdir_name('pdk-templates')
git_ref = PDK::Util.default_template_ref
git_ref = path_or_url == PDK::Util.default_template_url ? PDK::Util.default_template_ref : 'origin/master'

clone_result = PDK::Util::Git.git('clone', path_or_url, temp_dir)

Expand Down

0 comments on commit 634bc26

Please sign in to comment.