{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/5777","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/5777/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/5777/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/5777/events","html_url":"https://github.com/NixOS/nixpkgs/issues/5777","id":54401986,"number":5777,"title":"fetchgit is non-deterministic when given leaveDotGit = true and fetchSubmodules = false","user":{"login":"cstrahan","id":143982,"avatar_url":"https://avatars.githubusercontent.com/u/143982?v=3","gravatar_id":"","url":"https://api.github.com/users/cstrahan","html_url":"https://github.com/cstrahan","followers_url":"https://api.github.com/users/cstrahan/followers","following_url":"https://api.github.com/users/cstrahan/following{/other_user}","gists_url":"https://api.github.com/users/cstrahan/gists{/gist_id}","starred_url":"https://api.github.com/users/cstrahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstrahan/subscriptions","organizations_url":"https://api.github.com/users/cstrahan/orgs","repos_url":"https://api.github.com/users/cstrahan/repos","events_url":"https://api.github.com/users/cstrahan/events{/privacy}","received_events_url":"https://api.github.com/users/cstrahan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-15T01:35:59Z","updated_at":"2015-01-15T01:35:59Z","closed_at":null,"body":"`nix-prefetch-git` is non-deterministic if given both `leaveDotGit = true` and `fetchSubmodules = false`.\r\n\r\nHere are a couple runs back-to-back:\r\n\r\n    ~/src/nixpkgs (pleasant-ruby) λ nix-prefetch-git https://github.com/bundler/bundler.git a2343c9eabf5403d8ffcbca4dea33d18a60fc157 --hash sha256 --leave-dotGit 2>/dev/null\r\n    git revision is a2343c9eabf5403d8ffcbca4dea33d18a60fc157\r\n    d77a4f6c4f57af463bb481c9ea54ad059434e79f7fbfdd4b5a7f71208f2e8383\r\n    \r\n    ~/src/nixpkgs (pleasant-ruby) λ nix-prefetch-git https://github.com/bundler/bundler.git a2343c9eabf5403d8ffcbca4dea33d18a60fc157 --hash sha256 --leave-dotGit 2>/dev/null\r\n    git revision is a2343c9eabf5403d8ffcbca4dea33d18a60fc157\r\n    2816a1f50ec43a30c2c01f9e4ac4121f2b6f07e5d5abf2191b960d8865eb8afb\r\n    \r\n    ~/src/nixpkgs (pleasant-ruby) λ nix-prefetch-git https://github.com/bundler/bundler.git a2343c9eabf5403d8ffcbca4dea33d18a60fc157 --hash sha256 --leave-dotGit 2>/dev/null\r\n    git revision is a2343c9eabf5403d8ffcbca4dea33d18a60fc157\r\n    ddc4ae29374585987a1e6cf0a8e66ba96bb690bd474a887caef2dce0b3b0f9a7\r\n\r\nHowever, when I make this `leaveDotGit = true` and `fetchSubmodules = true`:\r\n\r\n    ~/src/nixpkgs (pleasant-ruby) λ nix-prefetch-git https://github.com/bundler/bundler.git a2343c9eabf5403d8ffcbca4dea33d18a60fc157 --hash sha256 --leave-dotGit --fetch-submodules 2>/dev/null\r\n    git revision is a2343c9eabf5403d8ffcbca4dea33d18a60fc157\r\n    34caf39724cfa72a136869d97aa74eacca9f9fb16a1e335e7fa6158aad38f1e4\r\n    \r\n    ~/src/nixpkgs (pleasant-ruby) λ nix-prefetch-git https://github.com/bundler/bundler.git a2343c9eabf5403d8ffcbca4dea33d18a60fc157 --hash sha256 --leave-dotGit --fetch-submodules 2>/dev/null\r\n    git revision is a2343c9eabf5403d8ffcbca4dea33d18a60fc157\r\n    34caf39724cfa72a136869d97aa74eacca9f9fb16a1e335e7fa6158aad38f1e4\r\n    \r\n    ~/src/nixpkgs (pleasant-ruby) λ nix-prefetch-git https://github.com/bundler/bundler.git a2343c9eabf5403d8ffcbca4dea33d18a60fc157 --hash sha256 --leave-dotGit --fetch-submodules 2>/dev/null\r\n    git revision is a2343c9eabf5403d8ffcbca4dea33d18a60fc157\r\n    34caf39724cfa72a136869d97aa74eacca9f9fb16a1e335e7fa6158aad38f1e4\r\n"}}