Use --repos-path to generate on-demand cmdline

Review Request #2429 — Created April 11, 2023 and submitted

Information

grim/hgkeeper
default

Reviewers

So we can avoid special environment case. Also this fixes my installation
as the HGK_REPOS_PATH was not recognized and the default value "repos" without
any absolute path was used.

 
Summary ID Author
Use --repos-path to generate on-demand cmdline
So we can avoid special environment case. Also this fixes my installation as the HGK_REPOS_PATH was not recognized and the default value "repos" without any absolute path was used.
cd3f7782ea43c81bfb512b6a57d329f606021a47 Andre Klitzing
Description From Last Updated

probably easier to just use --repos-path=%q

grimgrim
aklitzing@gmail.com
grim
  1. 
      
  2. authorized_keys/command.go (Diff revision 2)
     
     
    Show all issues

    probably easier to just use --repos-path=%q

    1. That would generate double-quotes in double-quotes of command.

      command="hgkeeper --repos-path="/opt/hg/r s" once username",restrict ssh-ed25519 AAAAC....
      
    2. Gotcha, thanks for clarifying!

  3. 
      
grim
  1. Ship It!
  2. Nice work, thanks!!

  3. 
      
grim
Review request changed
Status:
Completed