From 5505f01b4a887a423854ca33cb08b4fab5cb10b9 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 11 Feb 2015 12:58:34 +0900 Subject: [PATCH] Revert "Makefile: Always use ssh access to clone repository" This reverts commit e0b7a0bf924438646497782f3570149a7085610e. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index faf1e21..33da317 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,14 @@ home ?= $(HOME) dotfiles_url_base := https://raw.githubusercontent.com/10sr/dotfiles/master use_git ?= t +git_auth ?= t +ifneq (,$(git_auth)) dotfiles_git := git@github.com:10sr/dotfiles.git +else +$(warning 'git_auth' is empty. Use public read-only git repository.) +dotfiles_git := http://github.com/10sr/dotfiles.git +endif current_origin_url := $(shell git config remote.origin.url)