code: def test_push_wildcard_from_bare_git_repo(
      tmp_dir, make_tmp_dir, erepo_dir, local_cloud
  ):
      Git.init(tmp_dir.fs_path, bare=True).close()
  
      erepo_dir.add_remote(config=local_cloud.config)
      with erepo_dir.chdir():
          erepo_dir.dvc_gen(
              {
                  "dir123": {"foo": "foo content"},
                  "dirextra": {"extrafoo": "extra foo content"},
              },
              commit="initial",
          )
      erepo_dir.dvc.push(
          [os.path.join(os.fspath(erepo_dir), "dire*")], glob=True
      )
  
      erepo_dir.scm.gitpython.repo.create_remote(
          "origin", os.fspath(tmp_dir)
      )
      erepo_dir.scm.gitpython.repo.remote("origin").push("master")
  
      dvc_repo = make_tmp_dir("dvc-repo", scm=True, dvc=True)
      with dvc_repo.chdir():
          dvc_repo.dvc.imp(os.fspath(tmp_dir), "dirextra")
  
          with pytest.raises(DataIndexDirError):
              dvc_repo.dvc.imp(os.fspath(tmp_dir), "dir123")
  
imports: import filecmp
  import os
  import pytest
  from funcy import first
  from dvc.cachemgr import CacheManager
  from dvc.config import NoRemoteError
  from dvc.dvcfile import load_file
  from dvc.fs import system
  from dvc.scm import Git
  from dvc.stage.exceptions import StagePathNotFoundError
  from dvc.testing.tmp_dir import make_subrepo
  from dvc.utils.fs import remove
  from dvc_data.index.index import DataIndexDirError
label_desc: Use image node_id 18 for calling a global function with example usage: test_push_wildcard_from_bare_git_repo(tmp_dir, make_tmp_dir, erepo_dir, local_cloud) without return types