Quantcast
Channel: Not trusting file .hg/hgrc from untrusted user root, group dev - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by adejones for Not trusting file .hg/hgrc from untrusted user root, group dev

$
0
0

Based on the answer by DustWolf, this works on Ubuntu under WSL (Windows Subsystem for Linux) using a Windows drive letter share mounted using Microsoft's WSL drvfs file system driver, i.e., hg running locally on a shared drive.

not trusting file /mnt/x/repo/.hg/hgrc from untrusted user root, group rootMercurial Distributed SCM (version 5.3.1)(see https://mercurial-scm.org for more information)Copyright (C) 2005-2020 Matt Mackall and othersThis is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Create trust.rc on the WSL machine:

sudo touch /etc/mercurial/hgrc.d/trust.rcsudo nano /etc/mercurial/hgrc.d/trust.rc

Add:

[trusted]groups = rootusers = root

Save trust.rc and hg should now trust the repo hgrc as WSL's drvfs driver mounts the share as root:root.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>