Re: git repo details (was shebang fix to scripts/baculabackupreport.in)

Dan Langille <[email protected]> Tue, 30 Mar 2021 12:50:47 -0400
Newsgroups gmane.comp.sysutils.backup.bacula.devel
Message-ID <[email protected]>
Which repo?

From https://www.bacula.org/git/cgit.cgi/bacula/, the bottom of the page:

Clone
http://git.bacula.org/bacula.git

Side note: why http and not https?


While on this topic: https://www.bacula.org/11.0.x-manuals/en/developers/Bacula_Git_Usage.html mentions the master branch.

From what I see, this branch does not exist in git:

git clone https://git.bacula.org/bacula.git
Cloning into 'bacula'...
Checking connectivity: 176860, done.
Updating files: 100% (4651/4651), done.
[dan@air01:~/src] $ cd bacula/
[dan@air01:~/src/bacula] $ git checkout -b bugfix master
fatal: 'master' is not a commit and a branch 'bugfix' cannot be created from it
[dan@air01:~/src/bacula] $

Back to finding the file in question.

This is what I did:

[dan@air01:~/src/bacula] $ find . -name baculabackupreport.in
./bacula/scripts/baculabackupreport.in

[dan@air01:~/src/bacula] $ head -2 ./bacula/scripts/baculabackupreport.in
#!/bin/sh
#

My error was assuming we had a master branch and that when I cloned a repo, I would be on the master branch.

That's not the case.

After cloning, you're on 9.6:

[dan@air01:~/src/bacula] $ git branch
* Branch-9.6

Once I realized that, I found the code:

[dan@air01:~/src/bacula] $ git checkout Branch-11.0
Branch 'Branch-11.0' set up to track remote branch 'Branch-11.0' from 'origin'.
Switched to a new branch 'Branch-11.0'
[dan@air01:~/src/bacula] $ find . -name baculabackupreport.in
./bacula/scripts/baculabackupreport.in
[dan@air01:~/src/bacula] $ head -2 ./bacula/scripts/baculabackupreport.in
#!/bin/dash
#

Which goes back to: why does the repo not have a master branch?


--
Dan Langille - BSDCan / PGCon
[email protected]


> On Mar 30, 2021, at 12:03 PM, Martin Simmons <[email protected]> wrote:
> 
> /bin/dash is another shell, which is typically used as the system shell on
> Ubuntu and Debian.
> 
> I'm not sure which repo you are looking at, but my copy has /bin/dash in that
> file
> 
> __Martin
> 
> 
>>>>>> On Mon, 29 Mar 2021 14:23:59 -0400, Dan Langille said:
>> 
>> I tried to create a pull request for you, but couldn't find this code within the cloned repo.
>> 
>> I checked out Branch-11.0 but the error was not there.
>> 
>> The tarball for 11.0.2 contains this in bacula-11.0.2/scripts/baculabackupreport.in
>> 
>> #!/bin/dash
>> 
>> Perhaps that's meant to be #!/bin/bash
>> 
>> 
>> --
>>  Dan Langille
>>  [email protected]
>> 
>> 
>> _______________________________________________
>> Bacula-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>> 
> 
> 
> _______________________________________________
> Bacula-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-devel

_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
signature.asc (application/pgp-signature, 658 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQGTBAEBCgB9FiEEzqcJ4oeyf8sgTIEBIU09XU2nXtMFAmBjVuhfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldENF
QTcwOUUyODdCMjdGQ0IyMDRDODEwMTIxNEQzRDVENERBNzVFRDMACgkQIU09XU2n
XtNXrwf7Bzu9LQ+O7Aazqk0ED/p3W+PPo3a++0pYrpNt0hy8evbRzgz0XKwQ7guf
d6OZeojUaxW0WzJ8ezwPQEGDQfCjD0NXgJlhy2sXyjwRjBxAo614V+o2VVC3ErVD
fsq5Ug+X7PzTnPbBoCpWeMWAdwFdMoV8lkTiF6Ixycaec607iYdennloWWZSE6IU
AX4Rm6LvGrCZHD1RLyUd+hCjXP/AECoDZIh2ukIphSg64zV7SQrTQCJszinJ+f2K
rBtXg+f3gjr5rUZhdhFNfwluaUtr/DkjHDkxWPJ3gRm5FFtyvuHn4IlzhLEwwdPZ
MmPlzLUapv9u8B2P+jTMumQoi7EYBg==
=3rKi
-----END PGP SIGNATURE-----