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 <no-author> 0 +0000
  data 0
  
  get-mark :1
  commit refs/heads/master
  committer no-author <no-author> 0 +0000
  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 <no-author> 0 +0000
data 0


get-mark :1
846f127ede7fe8d0068e5d89419d050d88396ade
commit refs/heads/master
committer no-author <no-author> 0 +0000
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.

Reply via email to