the armistice was signed on 15 june 1940 in the very same railway carriage in which the 1918 armistice was signed ( it was removed from a museum building and placed on the precise spot where it was located in 1918 ) , hitler sat in the same chair in which marshal foch had sat when he faced the defeated german representatives .