Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 829
    • Issues 829
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #4572
Closed
Open
Created Aug 22, 2016 by Bitbucket Importer@bitbucket_importerOwner

"The handle is invalid" for git subrepository (Windows)

Created originally on Bitbucket by Anonymous

  • perform following commands in some empty dir:
#!cmd

hg init
echo googletest = [git]https://github.com/google/googletest.git > .hgsub
hg add
git clone https://github.com/google/googletest.git
hg commit -m "subrepo added"
thg
  • in Workbench click "* Working directory node *"

BUG: "error executing git for subrepo 'src/googletest': The handle is invalid" is issued.

It works fine when I run hg in console but it effectively makes the usage of git subrepos useless for me as I usually work from Workbench.

#!python
** Mercurial version (3.9).  TortoiseHg version (3.9)
** Command: 
** CWD: C:\Work\!vpi\python_embedding
** Encoding: cp1251
** Extensions loaded: graphlog, transplant, hgflow, eol, largefiles, strip, mq, rebase, mercurial_keyring, histedit, churn, purge, record, convert, mercurial_tools, outproc, share, exportfiles, hggit
** Python version: 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.6 PyQt-4.11.3 QScintilla-2.8.4
Traceback (most recent call last):
  File "tortoisehg\hgqt\cmdui.pyo", line 605, in runCommand
  File "tortoisehg\hgqt\update.pyo", line 343, in runCommand
  File "tortoisehg\hgqt\update.pyo", line 290, in isclean
  File "tortoisehg\hgqt\thgrepo.pyo", line 936, in sub
  File "mercurial\context.pyo", line 280, in sub
  File "mercurial\subrepo.pyo", line 360, in subrepo
  File "mercurial\subrepo.pyo", line 1293, in __init__
  File "mercurial\subrepo.pyo", line 1303, in _ensuregit
Abort: error executing git for subrepo 'src/googletest': The handle is invalid
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking