##// END OF EJS Templates
url: expand path for web.cacerts
Eduard-Cristian Stefan -
r13231:b335882c stable
parent child Browse files
Show More
@@ -551,6 +551,6 def remoteui(src, opts):
551 551 dst.setconfig(sect, key, val)
552 552 v = src.config('web', 'cacerts')
553 553 if v:
554 dst.setconfig('web', 'cacerts', v)
554 dst.setconfig('web', 'cacerts', util.expandpath(v))
555 555
556 556 return dst
@@ -512,6 +512,8 if has_https:
512 512 def connect(self):
513 513 if hasattr(self, 'ui'):
514 514 cacerts = self.ui.config('web', 'cacerts')
515 if cacerts:
516 cacerts = util.expandpath(cacerts)
515 517 else:
516 518 cacerts = None
517 519
@@ -154,11 +154,12 cacert configured in local repo
154 154 no changes found
155 155 $ mv copy-pull/.hg/hgrc.bu copy-pull/.hg/hgrc
156 156
157 cacert configured globally
157 cacert configured globally, also testing expansion of environment
158 variables in the filename
158 159
159 160 $ echo "[web]" >> $HGRCPATH
160 $ echo "cacerts=`pwd`/pub.pem" >> $HGRCPATH
161 $ hg -R copy-pull pull
161 $ echo 'cacerts=$P/pub.pem' >> $HGRCPATH
162 $ P=`pwd` hg -R copy-pull pull
162 163 pulling from https://localhost:$HGPORT/
163 164 searching for changes
164 165 no changes found
General Comments 0
You need to be logged in to leave comments. Login now