Git Mailing List Archive mirror
 help / color / mirror / Atom feed
From: dev@dev.maltese.cc
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: $PWD expanding to incorrect value Podman run command
Date: Thu, 9 May 2024 10:06:23 -0400 (EDT)	[thread overview]
Message-ID: <21209940.11022921.1715263583414@email.ionos.com> (raw)

[-- Attachment #1: Type: text/html, Size: 2533 bytes --]

[-- Attachment #2: git-bugreport-2024-05-09-0954.txt --]
[-- Type: text/plain, Size: 1425 bytes --]

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
Installed podman and executed: "$ podman run -p 8081:80 -v $PWD:/usr/share/nginx/html nginx"

What did you expect to happen? (Expected behavior)
Expected the nginx image to run and map the current directory to the '/usr/share/nginx/html' directory.

What happened instead? (Actual behavior)
Received the error "Error: invalid container path "\\Program Files\\Git\\usr\\share\\nginx\\html", must be an absolute path".

What's different between what you expected and what actually happened?
I expected the docker $PWD (or ${PWD} or $(pwd) or $HOME) to expand to the actual working directory, but it seems to expand to the directory of the gitbash executable.

Anything else you want to add:

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.41.0.windows.1
cpu: x86_64
built from commit: ff94e79c4724635915dbb3d4ba38f6bb91528260
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 19045 
compiler info: gnuc: 13.1
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe


[Enabled Hooks]
not run from a git repository - no hooks to show

             reply	other threads:[~2024-05-09 14:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09 14:06 dev [this message]
2024-05-09 21:32 ` $PWD expanding to incorrect value Podman run command brian m. carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21209940.11022921.1715263583414@email.ionos.com \
    --to=dev@dev.maltese.cc \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).