Skip to content

Scalar clone fails on local repo paths #378

@jeffhostetler

Description

@jeffhostetler

The scalar clone command fails on local repos paths and gives an incorrect error message.
Git-proper does allow such local repo paths.

jeffhost-mbp ~/work $ scalar clone ./gfw xxx_yyy
Clone parameters:
  Repo URL:     ./gfw
  Branch:       Default
  Cache Server: Default
  Local Cache:  /Users/jeffhost/.scalarCache
  Destination:  /Users/jeffhost/work/xxx_yyy
  FullClone:     False
Fetching objects from remote...Failed

Cannot clone @ /Users/jeffhost/work/xxx_yyy
Error: Failed to complete regular clone: fatal: './gfw' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.



jeffhost-mbp ~/work $ scalar clone file:///Users/jeffhost/work/gfw xxx_yyy
Clone parameters:
  Repo URL:     file:///Users/jeffhost/work/gfw
  Branch:       Default
  Cache Server: Default
  Local Cache:  /Users/jeffhost/.scalarCache
  Destination:  /Users/jeffhost/work/xxx_yyy
  FullClone:     False
Fetching objects from remote...Succeeded
Checking out 'master'...Succeeded



jeffhost-mbp ~/work $ git clone ./gfw yyy_zzz
Cloning into 'yyy_zzz'...
done.


jeffhost-mbp ~/work $ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions