commit b950073d0732fbf6b544a324e7a7952c0da2c2b7
parent 53efc0fd91ac7f277c61e24fb7de7cfa5a83af69
Author: cfillion <cfillion@users.noreply.github.com>
Date: Mon, 27 Feb 2017 16:34:31 -0500
archive: don't loose remote protection status on import
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/archive.cpp b/src/archive.cpp
@@ -123,8 +123,10 @@ void ImportArchive::importRemote(const string &data)
}
const Remote &original = m_remotes->get(remote.name());
- if(original.isProtected())
+ if(original.isProtected()) {
remote.setUrl(original.url());
+ remote.protect();
+ }
m_remotes->add(remote);
m_lastIndex = Index::load(remote.name());