pantheon-systems / terminus-site-clone-plugin

A Terminus plugin that adds the `site:clone` command to facilitate cloning sites on Pantheon
MIT License
21 stars 11 forks source link

Code clone error (unknown option --no-tags) #18

Closed purdy closed 5 years ago

purdy commented 5 years ago

Tried running this, but ran into an error (Git 2.6.4):

  [notice] Importing code on SITE.dev with git...
 [notice] Creating the temporary /var/folders/18/n3c95kf90h3ckh5l52vkwy4w0000gn/T/terminus-site-clone-temp/ directory...
 [notice] Cloning code for SITE.dev to /var/folders/18/n3c95kf90h3ckh5l52vkwy4w0000gn/T/terminus-site-clone-temp/foodnewsfeed/...
 [notice] Running git clone --no-tags --single-branch --branch master ssh://codeserver.dev.CHECKSUM@codeserver.dev.CHECKSUM.drush.in:2222/~/repository.git /var/folders/18/n3c95kf90h3ckh5l52vkwy4w0000gn/T/terminus-site-clone-temp/foodnewsfeed/
error: unknown option `no-tags'
usage: git clone [<options>] [--] <repo> [<dir>]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --recursive           initialize submodules in the clone
    --recurse-submodules  initialize submodules in the clone
    --template <template-directory>
                          directory from which templates will be used
    --reference <repo>    reference repository
    --dissociate          use --reference only while cloning
    -o, --origin <name>   use <name> instead of 'origin' to track upstream
    -b, --branch <branch>
                          checkout <branch> instead of the remote's HEAD
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth
    --single-branch       clone only one branch, HEAD or --branch
    --separate-git-dir <gitdir>
                          separate git dir from working tree
    -c, --config <key=value>
                          set config inside the new repository

 [error]  Command `git clone --no-tags --single-branch --branch master ssh://codeserver.dev.CHECKSUM@codeserver.dev.CHECKSUM.drush.in:2222/~/repository.git /var/folders/18/n3c95kf90h3ckh5l52vkwy4w0000gn/T/terminus-site-clone-temp/foodnewsfeed/` failed with exit code 129
ataylorme commented 5 years ago

@purdy try updating your Git version. You can download the latest from https://git-scm.com/download

purdy commented 5 years ago

That was it ... the standard git on my Mac was 2.6.4. I upgraded to 2.22.0 via git's mac installer and now I see the --no-tags option (though I have since worked around the command by just cloning it manually).