code: def test_commit_hash_not_sent_when_disable(wandb_init, git_repo):
      with unittest.mock.patch.dict(
          "os.environ", WANDB_DISABLE_GIT="true"
      ):
          run = wandb_init()
          assert git_repo.last_commit
          assert run._commit is None
          run.finish()
  
imports: import os
  import platform
  import queue
  import subprocess
  import unittest.mock
  import pytest
  import wandb
  from wandb.sdk.interface.interface_queue import InterfaceQueue
  from wandb.sdk.internal import context
  from wandb.sdk.internal.sender import SendManager
  from wandb.sdk.internal.system.system_info import SystemInfo
label_desc: Use image node_id 12 for calling a global function with example usage: test_commit_hash_not_sent_when_disable(wandb_init, git_repo) without return types