<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Aug 16, 2016 at 10:11 PM Sergio Schvezov <<a href="mailto:sergio.schvezov@canonical.com">sergio.schvezov@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Create a new `apps` entry like this<br>
<br>
apps:<br>
sh:<br>
command: bash<br>
plugs: [same list of plugs used by what calls git]<br></blockquote><div><br></div><div>I did something similar:</div><div><br></div><div>apps:</div><div> git:</div><div> command: usr/bin/git</div><div> plugs: [...]</div><div><br></div><div>This way I could mess around with charm.git and play with environment variables. At the end of the day GIT_EXEC_PATH and PREFIX were needed.</div><div><br></div><div>Even still I'm having issues with things like `git clone --recursive` so I've patched those calls out of the source code for now (when not needed). I'll keep playing around to see if I can get git-submodules to work but 95% of the use cases for the tool are functioning now.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There's a `snap shell` (or similar) command making a come back some time<br>
and would make this more straightforward.<br>
<br>
For what it's worth I strace and gdb like this in a `snap try` session.<br></blockquote><div><br></div><div>I spent quite a long time with strace against charm.git, but that lead to more problems than help. I've not used `snap try` yet. </div></div></div>