Skip to content

FR(librarian): librarian update-image should remember the last branch of --api-source #2648

@parthea

Description

@parthea

After running librarian update-image --api-source=/usr/local/google/home/partheniou/git/googleapis, I noticed that the branch of /usr/local/google/home/partheniou/git/googleapis was changed to an older one. It would be great if librarian could remember the original branch, or move to the current HEAD.

Before running librarian update-image..

partheniou@partheniou-vm-3:~/git/googleapis$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
...

partheniou@partheniou-vm-3:~/git/googleapis$ git log
commit 94ccdfe4519e0ba817bd33aa22eb9c64f88a6874 (HEAD -> master, origin/master, origin/HEAD)
Author: Google APIs <[email protected]>

After running librarian update-image..

partheniou@partheniou-vm-3:~/git/googleapis$ git status
HEAD detached from refs/heads/master
nothing to commit, working tree clean
...

partheniou@partheniou-vm-3:~/git/googleapis$ git log
commit 3322511885371d2b2253f209ccc3aa60d4100cfd (HEAD)
Author: Google APIs <[email protected]>
Date:   Thu Oct 16 23:49:13 2025 -0700


Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions