[git-users] fast-import: cannot use previous commit hash in "from"
Hi! Using fast-import, I tried to: 1. Create a commit 2. Get its hash (using get mark) 3. Create another commit 4. Pass the hash of the previous commit to 'from', to use it as parent I've got this instead: fatal: Not a valid commit: 846f127ede7fe8d0068e5d89419d050d88396ade Most Recent Commands Before Crash - commit refs/heads/master mark :1 committer no-author 0 + data 0 get-mark :1 commit refs/heads/master committer no-author 0 + data 0 * from 846f127ede7fe8d0068e5d89419d050d88396ade Active Branch LRU - active_branches = 1 cur, 5 max pos clock name ~ 1) 1 refs/heads/master Inactive Branches - refs/heads/master: status : active loaded tip commit : 846f127ede7fe8d0068e5d89419d050d88396ade old tree: 4b825dc642cb6eb9a060e54bf8d69288fbee4904 cur tree: 4b825dc642cb6eb9a060e54bf8d69288fbee4904 commit clock: 1 last pack : 0 Marks - :1 846f127ede7fe8d0068e5d89419d050d88396ade --- END OF CRASH REPORT How is "846f127ede7fe8d0068e5d89419d050d88396ade" not a valid commit when it is showing that it is the tip commit of a branch? Is this a bug? git version 2.37.2 The exact commands are (yellow is stdout): commit refs/heads/master mark :1 committer no-author 0 + data 0 get-mark :1 846f127ede7fe8d0068e5d89419d050d88396ade commit refs/heads/master committer no-author 0 + data 0 from 846f127ede7fe8d0068e5d89419d050d88396ade Thanks -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/2eece5b6-1c53-4507-a54c-3642a2e840aan%40googlegroups.com.
[git-users] Git SVN clone only one remote branch
Hello guys, That´s my first experience with git and already have a problem to solve. We work here in colaboration with others remote teams in a big project. Each one of us have a exclusive branch in SVN central repository, and the main trunk is used only from the central team. I want to install a GIT a repository and clone only one branch. Clone all the trunk, branches and tags folders is not and option, because we will use only a little part of the SVN repo (only our branch). I started with the folowing command, but, as expected, nothing happens: git svn clone -s --no-minimize-url -r3:HEAD https://remote.svn.url/system/branch/mybranch/ /srv/repos/git/system-fetch I inspected the .git/config file, and I guess something in there could help me, but I really don´t know what to do. Thanks in advance. (sorry for any english errors) -- You received this message because you are subscribed to the Google Groups Git for human beings group. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.