Skip to content

ghorg reclone ignores GHORG_ABSOLUTE_PATH_TO_CLONE_TO #473

@dvonessen

Description

@dvonessen

Describe the bug
I'm running into an issue where ghorg reclone does not seem to respect the GHORG_ABSOLUTE_PATH_TO_CLONE_TO environment variable.

Context

  • I use the environment variable because the conf.yaml file doesn’t handle relative paths correctly.
  • My setup runs on multiple machines with different usernames, so I rely on the environment variable to point to a custom directory within each user's home directory.

Any advice or workaround would be appreciated! 😊

To Reproduce
Steps to reproduce the behavior:

  1. Configure reclone.yaml
github-dvonessen: 
    cmd: ghorg clone NAME --scm=github --clone-type user --preserve-dir --token xxxxxx --output-dir github.com/dvonessen
    description: Clones the dvonessen user repositories
  1. Full command and details of the clone (removing your token) e.g.

      $ export GHORG_ABSOLUTE_PATH_TO_CLONE_TO=/home/username/git
      $ ghorg reclone github-dvonessen
      Running reclone: github-dvonessen
      Description: Clones the dvonessen user repositories
    
      > ghorg clone dvonessen --scm=github --clone-type user --preserve-dir --token XXXXXXX --output-dir github.com/dvonessen
    
       +-+-+-+-+ +-+-+ +-+-+-+-+-+
       |T|I|M|E| |T|O| |G|H|O|R|G|
       +-+-+-+-+ +-+-+ +-+-+-+-+-+
    
       *************************************
       * SCM           : github
       * Type          : user
       * Protocol      : ssh
       * Location      : /Users/dvonessen/ghorg/
       * Concurrency   : 25
       * Skip Archived : true
       * Wikis         : true
       * Submodules    : true
       * Output Dir    : github.com/dvonessen
       * No Clean      : true
       * Prune         : true
       * Fetch All     : true
       * Reclone Conf  : /Users/dvonessen/.config/ghorg/reclone.yaml
       * Preserve Dir  : true
       * Config Used   : /Users/dvonessen/.config/ghorg/conf.yaml
       * Ghorg version : v1.11.0
       *************************************
    
  2. Details on the user/org you tried to clone e.g. is it your user, a public org, etc.

Environment (please complete the following information):

  • OS: MacOS 15.1
  • SHELL: ZSH

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions